VirtualBox

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

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

Enabled VPID (VT-x tagged TLB); default off

  • Added machine & machine debugger property
  • Added -vtxvpid option to VBoxManage
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 386.1 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4 * :tabSize=2:indentSize=2:noTabs=true:
5 * :folding=explicit:collapseFolds=1:
6 *
7 * Master declaration for VirtualBox's Main API, represented
8 * by COM/XPCOM and web service interfaces.
9 *
10 * From this document, the build system generates several files
11 * via XSLT that are then used during the build process.
12 *
13 * Below is the list of XSL templates that operate on this file and
14 * output files they generate. These XSL templates must be updated
15 * whenever the schema of this file changes:
16 *
17 * 1. src/VBox/Main/idl/midl.xsl =>
18 * out/<platform>/bin/sdk/idl/VirtualBox.idl
19 * (MS COM interface definition file for Main API)
20 *
21 * 2. src/VBox/Main/idl/xpidl.xsl =>
22 * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
23 * (XPCOM interface definition file for Main API)
24 *
25 * 3. src/VBox/Main/idl/doxygen.xsl =>
26 * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
27 * (pseudo-IDL for Doxygen to generate the official Main API
28 * documentation)
29 *
30 * 4. src/VBox/Main/webservice/*.xsl =>
31 * a bunch of WSDL and C++ files
32 * (VirtualBox web service sources and SOAP mappers;
33 * see src/VBox/Main/webservice/Makefile.kmk for details)
34 *
35 * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
36 * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
37 * (smart Qt-based C++ wrapper classes for COM interfaces
38 * of the Main API)
39 *
40 * 6. src/VBox/Frontends/VirtualBox4/include/COMWrappers.xsl =>
41 * out/<platform>/obj/src/VBox/Frontends/VirtualBox4/VirtualBox/include/COMWrappers.h
42 * (smart Qt-based C++ wrapper classes for COM interfaces
43 * of the Main API)
44 *
45 * 7. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
46 * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
47 * (Main API TypeLib block for the WiX installer)
48 *
49 Copyright (C) 2006-2007 Sun Microsystems, Inc.
50
51 This file is part of VirtualBox Open Source Edition (OSE), as
52 available from http://www.virtualbox.org. This file is free software;
53 you can redistribute it and/or modify it under the terms of the GNU
54 General Public License (GPL) as published by the Free Software
55 Foundation, in version 2 as it comes in the "COPYING" file of the
56 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
57 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
58
59 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
60 Clara, CA 95054 USA or visit http://www.sun.com if you need
61 additional information or have any questions.
62-->
63
64<idl>
65
66<if target="midl">
67 <cpp line="enum {"/>
68 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
69 <cpp line=" kTypeLibraryMinorVersion = 0"/>
70 <cpp line="};"/>
71</if>
72
73<if target="xpidl">
74 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
75 <cpp>
76// currenty, nsISupportsImpl.h lacks the below-like macros
77#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
78#define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
79 NS_IMPL_THREADSAFE_ADDREF(_class) \
80 NS_IMPL_THREADSAFE_RELEASE(_class) \
81 NS_IMPL_QUERY_INTERFACE1_CI(_class, _interface) \
82 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
83#endif
84#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
85#define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
86 NS_IMPL_THREADSAFE_ADDREF(_class) \
87 NS_IMPL_THREADSAFE_RELEASE(_class) \
88 NS_IMPL_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
89 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
90#endif
91 </cpp>
92</if>
93
94<library
95 name="VirtualBox"
96 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
97 version="1.3"
98 desc="VirtualBox Type Library"
99 appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
100 supportsErrorInfo="yes"
101>
102
103 <!--
104 // all common enums
105 /////////////////////////////////////////////////////////////////////////
106 -->
107
108 <enum
109 name="TSBool"
110 uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
111 >
112 <desc>
113 Boolean variable having a third state, default.
114 </desc>
115
116 <const name="False" value="0"/>
117 <const name="True" value="1"/>
118 <const name="Default" value="2"/>
119 </enum>
120
121 <enum
122 name="MachineState"
123 uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
124 >
125 <desc>
126 Virtual machine execution state. This enumeration represents possible
127 values of the <link to="IMachine::state"/> attribute.
128 </desc>
129
130 <const name="Null" value="0">
131 <desc><tt>null</tt> value. Never used by the API.</desc>
132 </const>
133 <const name="PoweredOff" value="1">
134 <desc>
135 The machine is not running.
136 </desc>
137 </const>
138 <const name="Saved" value="2">
139 <desc>
140 The machine is not currently running, but the execution state
141 of the machine has been saved to an external file when it
142 was running.
143 <note>
144 No any machine settings can be altered when the machine
145 is in this state.
146 </note>
147 </desc>
148 </const>
149 <const name="Aborted" value="3">
150 <desc>
151 A process that run the machine has abnormally terminated.
152 Other than that, this value is equivalent to #PoweredOff.
153 </desc>
154 </const>
155 <const name="Running" value="4">
156 <desc>
157 The machine is currently being executed.
158 <note>
159 This value can be used in comparison expressions:
160 all state values below it describe a virtual machine that is
161 not currently being executed (i.e., it is completely out of
162 action).
163 </note>
164 <note internal="yes">
165 For whoever decides to touch this enum: In order to keep the
166 aforementioned comparisons valid, this state must immediately
167 preceed the Paused state.
168 </note>
169 </desc>
170 </const>
171 <const name="Paused" value="5">
172 <desc>
173 The execution of the machine has been paused.
174 <note>
175 This value can be used in comparison expressions: all state values
176 above it represent unstable states of the running virtual
177 machine. Unless explicitly stated otherwise, no machine settings can
178 be altered when it is in one of the unstable states.
179 </note>
180 <note internal="yes">
181 For whoever decides to touch this enum: In order to keep the
182 aforementioned comparisons valid, this state must immediately
183 follow the Running state.
184 </note>
185 </desc>
186 </const>
187 <const name="Stuck" value="6">
188 <desc>
189 The execution of the machine has reached the "Guru Meditation"
190 condition. This condition indicates an internal VMM failure which may
191 happen as a result of either an unhandled low-level virtual hardware
192 exception or one of the recompiler exceptions (such as
193 the <i>too-many-traps</i> condition).
194 </desc>
195 </const>
196 <const name="Starting" value="7">
197 <desc>
198 The machine is being started after
199 <link to="IConsole::powerUp">powering it on</link> from a
200 zero execution state.
201 </desc>
202 </const>
203 <const name="Stopping" value="8">
204 <desc>
205 The machine is being normally stopped
206 (after explicitly <link to="IConsole::powerDown">powering it off</link>,
207 or after the guest OS has initiated a shutdown sequence).
208 </desc>
209 </const>
210 <const name="Saving" value="9">
211 <desc>
212 The machine is saving its execution state to a file as a
213 result of calling <link to="IConsole::saveState"/> or an online
214 snapshot of the machine is being taken using
215 <link to="IConsole::takeSnapshot"/>.
216 </desc>
217 </const>
218 <const name="Restoring" value="10">
219 <desc>
220 The execution state of the machine is being restored from a file
221 after <link to="IConsole::powerUp">powering it on</link> from
222 a saved execution state.
223 </desc>
224 </const>
225 <const name="Discarding" value="11">
226 <desc>
227 A snapshot of the machine is being discarded after calling
228 <link to="IConsole::discardSnapshot"/> or its current state is
229 being discarded after <link to="IConsole::discardCurrentState"/>.
230 </desc>
231 </const>
232 </enum>
233
234 <enum
235 name="SessionState"
236 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
237 >
238 <desc>
239 Session state. This enumeration represents possible values of
240 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
241 attributes. Idividual value descriptions contain the appropriate
242 meaning for every case.
243 </desc>
244
245 <const name="Null" value="0">
246 <desc><tt>null</tt> value. Never used by the API.</desc>
247 </const>
248 <const name="Closed" value="1">
249 <desc>
250 The machine has no open sessions (<link to="IMachine::sessionState"/>);
251 the session is closed (<link to="ISession::state"/>)
252 </desc>
253 </const>
254 <const name="Open" value="2">
255 <desc>
256 The machine has an open direct session (<link to="IMachine::sessionState"/>);
257 the session is open (<link to="ISession::state"/>)
258 </desc>
259 </const>
260 <const name="Spawning" value="3">
261 <desc>
262 A new (direct) session is being opened for the machine
263 as a result of <link to="IVirtualBox::openRemoteSession()"/>
264 call (<link to="IMachine::sessionState"/>);
265 the session is currently being opened
266 as a result of <link to="IVirtualBox::openRemoteSession()"/>
267 call (<link to="ISession::state"/>)
268 </desc>
269 </const>
270 <const name="Closing" value="4">
271 <desc>
272 The direct session is being closed (<link to="IMachine::sessionState"/>);
273 the session is being closed (<link to="ISession::state"/>)
274 </desc>
275 </const>
276 </enum>
277
278 <enum
279 name="SessionType"
280 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
281 >
282 <desc>
283 Session type. This enumeration represents possible values of the
284 <link to="ISession::type"/> attribute.
285 </desc>
286
287 <const name="Null" value="0">
288 <desc><tt>null</tt> value. Never used by the API.</desc>
289 </const>
290 <const name="Direct" value="1">
291 <desc>
292 Direct session
293 (opened by <link to="IVirtualBox::openSession()"/>)
294 </desc>
295 </const>
296 <const name="Remote" value="2">
297 <desc>
298 Remote session
299 (opened by <link to="IVirtualBox::openRemoteSession()"/>)
300 </desc>
301 </const>
302 <const name="Existing" value="3">
303 <desc>
304 Existing session
305 (opened by <link to="IVirtualBox::openExistingSession()"/>)
306 </desc>
307 </const>
308 </enum>
309
310 <enum
311 name="DeviceType"
312 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
313 >
314 <desc>
315 Device type.
316 </desc>
317 <const name="Null" value="0">
318 <desc>
319 <tt>null</tt> value which may also mean "no device".
320 <note>
321 This value is not allowed for
322 <link to="IConsole::getDeviceActivity"/>
323 </note>
324 </desc>
325 </const>
326 <const name="Floppy" value="1">
327 <desc>Floppy device.</desc>
328 </const>
329 <const name="DVD" value="2">
330 <desc>CD/DVD-ROM device.</desc>
331 </const>
332 <const name="HardDisk" value="3">
333 <desc>Hard disk device.</desc>
334 </const>
335 <const name="Network" value="4">
336 <desc>Network device.</desc>
337 </const>
338 <const name="USB" value="5">
339 <desc>USB device.</desc>
340 </const>
341 <const name="SharedFolder" value="6">
342 <desc>Shared folder device.</desc>
343 </const>
344 </enum>
345
346 <enum
347 name="DeviceActivity"
348 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
349 >
350 <desc>
351 Device activity for <link to="IConsole::getDeviceActivity"/>.
352 </desc>
353
354 <const name="Null" value="0"/>
355 <const name="Idle" value="1"/>
356 <const name="Reading" value="2"/>
357 <const name="Writing" value="3"/>
358 </enum>
359
360 <enum
361 name="ResourceUsage"
362 uuid="FC56E4B6-B195-48e2-A5E1-A667B0D9F809"
363 >
364 <desc>
365 Usage type constants for
366 <link to="IVirtualBox::getDVDImageUsage"/> and
367 <link to="IVirtualBox::getFloppyImageUsage"/>.
368 </desc>
369
370 <const name="Null" value="0">
371 <desc><tt>null</tt> value. Never used by the API.</desc>
372 </const>
373 <const name="Permanent" value="1">
374 <desc>
375 Scopes the VMs that use the resource permanently
376 (the information about this usage is stored in the VM
377 settings file).
378 </desc>
379 </const>
380 <const name="Temporary" value="2">
381 <desc>
382 Scopes the VMs that are temporarily using the resource
383 (the information about the usage is not yet saved in the VM
384 settings file). Temporary usage can take place only in the
385 context of an open session.
386 </desc>
387 </const>
388 <const name="All" value="3">
389 <desc>
390 Combines Permanent and Temporary.
391 </desc>
392 </const>
393 </enum>
394
395 <enum
396 name="StorageBus"
397 uuid="715984a5-093c-43bb-aa42-a16ed16828dd"
398 >
399 <desc>Interface bus type for storage devices.</desc>
400
401 <const name="Null" value="0">
402 <desc><tt>null</tt> value. Never used by the API.</desc>
403 </const>
404
405 <const name="IDE" value="1"/>
406 <const name="SATA" value="2"/>
407 </enum>
408
409 <enum
410 name="ClipboardMode"
411 uuid="33364716-4008-4701-8f14-be0fa3d62950"
412 >
413 <desc>
414 Host-Guest clipboard interchange mode.
415 </desc>
416
417 <const name="Disabled" value="0"/>
418 <const name="HostToGuest" value="1"/>
419 <const name="GuestToHost" value="2"/>
420 <const name="Bidirectional" value="3"/>
421 </enum>
422
423 <enum
424 name="Scope"
425 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
426 >
427 <desc>
428 Scope of the operation.
429
430 A generic enumeration used in various methods to define the action or
431 argument scope.
432 </desc>
433
434 <const name="Global" value="0"/>
435 <const name="Machine" value="1"/>
436 <const name="Session" value="2"/>
437 </enum>
438
439 <enum
440 name="GuestStatisticType"
441 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
442 >
443 <desc>
444 Statistics type for <link to="IGuest::getStatistic"/>.
445 </desc>
446
447 <const name="CPULoad_Idle" value="0">
448 <desc>
449 Idle CPU load (0-100%) for last interval.
450 </desc>
451 </const>
452 <const name="CPULoad_Kernel" value="1">
453 <desc>
454 Kernel CPU load (0-100%) for last interval.
455 </desc>
456 </const>
457 <const name="CPULoad_User" value="2">
458 <desc>
459 User CPU load (0-100%) for last interval.
460 </desc>
461 </const>
462 <const name="Threads" value="3">
463 <desc>
464 Total number of threads in the system.
465 </desc>
466 </const>
467 <const name="Processes" value="4">
468 <desc>
469 Total number of processes in the system.
470 </desc>
471 </const>
472 <const name="Handles" value="5">
473 <desc>
474 Total number of handles in the system.
475 </desc>
476 </const>
477 <const name="MemoryLoad" value="6">
478 <desc>
479 Memory load (0-100%).
480 </desc>
481 </const>
482 <const name="PhysMemTotal" value="7">
483 <desc>
484 Total physical memory in megabytes.
485 </desc>
486 </const>
487 <const name="PhysMemAvailable" value="8">
488 <desc>
489 Free physical memory in megabytes.
490 </desc>
491 </const>
492 <const name="PhysMemBalloon" value="9">
493 <desc>
494 Ballooned physical memory in megabytes.
495 </desc>
496 </const>
497 <const name="MemCommitTotal" value="10">
498 <desc>
499 Total amount of memory in the committed state in megabytes.
500 </desc>
501 </const>
502 <const name="MemKernelTotal" value="11">
503 <desc>
504 Total amount of memory used by the guest OS's kernel in megabytes.
505 </desc>
506 </const>
507 <const name="MemKernelPaged" value="12">
508 <desc>
509 Total amount of paged memory used by the guest OS's kernel in megabytes.
510 </desc>
511 </const>
512 <const name="MemKernelNonpaged" value="13">
513 <desc>
514 Total amount of nonpaged memory used by the guest OS's kernel in megabytes.
515 </desc>
516 </const>
517 <const name="MemSystemCache" value="14">
518 <desc>
519 Total amount of memory used by the guest OS's system cache in megabytes.
520 </desc>
521 </const>
522 <const name="PageFileSize" value="15">
523 <desc>
524 Pagefile size in megabytes.
525 </desc>
526 </const>
527 <const name="SampleNumber" value="16">
528 <desc>
529 Statistics sample number
530 </desc>
531 </const>
532 <const name="MaxVal" value="17"/>
533 </enum>
534
535 <enum
536 name="BIOSBootMenuMode"
537 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
538 >
539 <desc>
540 BIOS boot menu mode.
541 </desc>
542
543 <const name="Disabled" value="0"/>
544 <const name="MenuOnly" value="1"/>
545 <const name="MessageAndMenu" value="2"/>
546 </enum>
547
548 <enum
549 name="IDEControllerType"
550 uuid="445330e3-202a-4dab-854f-ce22e6cb9715"
551 >
552 <desc>
553 IDE controller type.
554 </desc>
555
556 <const name="Null" value="0">
557 <desc><tt>null</tt> value. Never used by the API.</desc>
558 </const>
559 <const name="PIIX3" value="1"/>
560 <const name="PIIX4" value="2"/>
561 </enum>
562
563 <enum
564 name="DriveState"
565 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
566 >
567 <const name="Null" value="0">
568 <desc><tt>null</tt> value. Never used by the API.</desc>
569 </const>
570 <const name="NotMounted" value="1"/>
571 <const name="ImageMounted" value="2"/>
572 <const name="HostDriveCaptured" value="3"/>
573 </enum>
574
575 <!--
576 // IVirtualBoxErrorInfo
577 /////////////////////////////////////////////////////////////////////////
578 -->
579
580 <interface
581 name="IVirtualBoxErrorInfo" extends="$errorinfo"
582 uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
583 supportsErrorInfo="no"
584 wsmap="suppress"
585 >
586 <desc>
587 The IVirtualBoxErrorInfo interface represents extended error information.
588
589 Extended error information can be set by VirtualBox components after
590 unsuccessful or partially successful method invocation. This information
591 can be retrievefd by the calling party as an IVirtualBoxErrorInfo object
592 and then shown to the client in addition to the plain 32-bit result code.
593
594 In MS COM, this interface extends the IErrorInfo interface,
595 in XPCOM, it extends the nsIException interface. In both cases,
596 it provides a set of common attributes to retrieve error
597 information.
598
599 Sometimes invocation of some component's method may involve methods of
600 other components that may also fail (independently of this method's
601 failure), or a series of non-fatal errors may precede a fatal error that
602 causes method failure. In cases like that, it may be desirable to preserve
603 information about all errors happened during method invocation and deliver
604 it to the caller. The <link to="#next"/> attribute is intended
605 specifically for this purpose and allows to represent a chain of errors
606 through a single IVirtualBoxErrorInfo object set after method invocation.
607
608 Note that errors are stored to a chain in the reverse order, i.e. the
609 initial error object you query right after method invocation is the last
610 error set by the callee, the object it points to in the @a next attribute
611 is the previous error and so on, up to the first error (which is the last
612 in the chain).
613 </desc>
614
615 <attribute name="resultCode" type="result" readonly="yes">
616 <desc>
617 Result code of the error.
618 Usually, it will be the same as the result code returned
619 by the method that provided this error information, but not
620 always. For example, on Win32, CoCreateInstance() will most
621 likely return E_NOINTERFACE upon unsuccessful component
622 instantiation attempt, but not the value the component factory
623 returned.
624 <note>
625 In MS COM, there is no equivalent.
626 In XPCOM, it is the same as nsIException::result.
627 </note>
628 </desc>
629 </attribute>
630
631 <attribute name="interfaceID" type="uuid" readonly="yes">
632 <desc>
633 UUID of the interface that defined the error.
634 <note>
635 In MS COM, it is the same as IErrorInfo::GetGUID.
636 In XPCOM, there is no equivalent.
637 </note>
638 </desc>
639 </attribute>
640
641 <attribute name="component" type="wstring" readonly="yes">
642 <desc>
643 Name of the component that generated the error.
644 <note>
645 In MS COM, it is the same as IErrorInfo::GetSource.
646 In XPCOM, there is no equivalent.
647 </note>
648 </desc>
649 </attribute>
650
651 <attribute name="text" type="wstring" readonly="yes">
652 <desc>
653 Text description of the error.
654 <note>
655 In MS COM, it is the same as IErrorInfo::GetDescription.
656 In XPCOM, it is the same as nsIException::message.
657 </note>
658 </desc>
659 </attribute>
660
661 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
662 <desc>
663 Next error object if there is any, or @c null otherwise.
664 <note>
665 In MS COM, there is no equivalent.
666 In XPCOM, it is the same as nsIException::inner.
667 </note>
668 </desc>
669 </attribute>
670
671 </interface>
672
673
674 <!--
675 // IVirtualBox
676 /////////////////////////////////////////////////////////////////////////
677 -->
678
679 <interface
680 name="IVirtualBoxCallback" extends="$unknown"
681 uuid="5516cc08-fb81-47a6-b184-031e7bbd2997"
682 wsmap="suppress"
683 >
684 <method name="onMachineStateChange">
685 <desc>
686 The execution state of the given machine has changed.
687 <see>IMachine::state</see>
688 </desc>
689 <param name="machineId" type="uuid" dir="in">
690 <desc>ID of the machine this event relates to.</desc>
691 </param>
692 <param name="state" type="MachineState" dir="in">
693 <desc>New execution state.</desc>
694 </param>
695 </method>
696
697 <method name="onMachineDataChange">
698 <desc>
699 Any of the settings of the given machine has changed.
700 </desc>
701 <param name="machineId" type="uuid" dir="in">
702 <desc>ID of the machine this event relates to.</desc>
703 </param>
704 </method>
705
706 <method name="onExtraDataCanChange">
707 <desc>
708 Notification when someone tries to change extra data for
709 either the given machine or (if null) global extra data.
710 This gives the chance to veto against changes.
711 </desc>
712 <param name="machineId" type="uuid" dir="in">
713 <desc>
714 ID of the machine this event relates to
715 (null ID for global extra data change requests).
716 </desc>
717 </param>
718 <param name="key" type="wstring" dir="in">
719 <desc>
720 Extra data key for the attempted write.
721 </desc>
722 </param>
723 <param name="value" type="wstring" dir="in">
724 <desc>
725 Extra data value for the given key.
726 </desc>
727 </param>
728 <param name="error" type="wstring" dir="out">
729 <desc>
730 Optional error message describing the reason of the
731 veto (ignored if this notification returns @c true).
732 </desc>
733 </param>
734 <param name="allowChange" type="boolean" dir="return">
735 <desc>
736 Flag to indicate whether the callee agrees (@ true)
737 or vetoes against the change (@ false).
738 </desc>
739 </param>
740 </method>
741
742 <method name="onExtraDataChange">
743 <desc>
744 Notification when machine specific or global extra data
745 has changed.
746 </desc>
747 <param name="machineId" type="uuid" dir="in">
748 <desc>
749 ID of the machine this event relates to.
750 Null for global extra data changes.
751 </desc>
752 </param>
753 <param name="key" type="wstring" dir="in">
754 <desc>
755 Extra data key that has changed.
756 </desc>
757 </param>
758 <param name="value" type="wstring" dir="in">
759 <desc>
760 Extra data value for the given key.
761 </desc>
762 </param>
763 </method>
764
765 <method name="onMediaRegistered">
766 <desc>
767 The given media was registered or unregistered
768 within this VirtualBox installation.
769
770 The @a mediaType parameter describes what type of
771 media the specified @a mediaId refers to. Possible
772 values are:
773
774 <ul>
775 <li><link to="DeviceType::HardDisk"/>: the media is a hard disk
776 that, if registered, can be obtained using the
777 <link to="IVirtualBox::getHardDisk"/> call.</li>
778 <li><link to="DeviceType::DVD"/>: the media is a CD/DVD image
779 that, if registered, can be obtained using the
780 <link to="IVirtualBox::getDVDImage"/> call.</li>
781 <li><link to="DeviceType::Floppy"/>: the media is a Floppy image
782 that, if registered, can be obtained using the
783 <link to="IVirtualBox::getFloppyImage"/> call.</li>
784 </ul>
785
786 Note that if this is a deregistration notification,
787 there is no way to access the object representing the
788 unregistered media. It is supposed that the
789 application will do required cleanup based on the @a
790 mediaId value.
791 </desc>
792 <param name="mediaId" type="uuid" dir="in">
793 <desc>ID of the media this event relates to.</desc>
794 </param>
795 <param name="mediaType" type="DeviceType" dir="in">
796 <desc>Type of the media this event relates to.</desc>
797 </param>
798 <param name="registered" type="boolean" dir="in">
799 <desc>
800 If true, the media was registered, otherwise it was
801 unregistered.
802 </desc>
803 </param>
804 </method>
805
806 <method name="onMachineRegistered">
807 <desc>
808 The given machine was registered or unregistered
809 within this VirtualBox installation.
810 </desc>
811 <param name="machineId" type="uuid" dir="in">
812 <desc>ID of the machine this event relates to.</desc>
813 </param>
814 <param name="registered" type="boolean" dir="in">
815 <desc>
816 If true, the machine was registered, otherwise it was
817 unregistered.
818 </desc>
819 </param>
820 </method>
821
822 <method name="onSessionStateChange">
823 <desc>
824 The state of the session for the given machine was changed.
825 <see>IMachine::sessionState</see>
826 </desc>
827 <param name="machineId" type="uuid" dir="in">
828 <desc>ID of the machine this event relates to.</desc>
829 </param>
830 <param name="state" type="SessionState" dir="in">
831 <desc>New session state.</desc>
832 </param>
833 </method>
834
835 <method name="onSnapshotTaken">
836 <desc>
837 A new snapshot of the machine has been taken.
838 <see>ISnapshot</see>
839 </desc>
840 <param name="machineId" type="uuid" dir="in">
841 <desc>ID of the machine this event relates to.</desc>
842 </param>
843 <param name="snapshotId" type="uuid" dir="in">
844 <desc>ID of the new snapshot.</desc>
845 </param>
846 </method>
847
848 <method name="onSnapshotDiscarded">
849 <desc>
850 Snapshot of the given machine has been discarded.
851
852 <note>
853 This notification is delivered <b>after</b> the snapshot
854 object has been uninitialized on the server (so that any
855 attempt to call its methods will return an error).
856 </note>
857
858 <see>ISnapshot</see>
859 </desc>
860 <param name="machineId" type="uuid" dir="in">
861 <desc>ID of the machine this event relates to.</desc>
862 </param>
863 <param name="snapshotId" type="uuid" dir="in">
864 <desc>
865 ID of the discarded snapshot. <tt>null</tt> means the
866 current machine state has been discarded (restored from
867 the current snapshot).
868 </desc>
869 </param>
870 </method>
871
872 <method name="onSnapshotChange">
873 <desc>
874 Snapshot properties (name and/or description) have been changed.
875 <see>ISnapshot</see>
876 </desc>
877 <param name="machineId" type="uuid" dir="in">
878 <desc>ID of the machine this event relates to.</desc>
879 </param>
880 <param name="snapshotId" type="uuid" dir="in">
881 <desc>ID of the changed snapshot.</desc>
882 </param>
883 </method>
884
885 <method name="onGuestPropertyChange">
886 <desc>
887 Notification when a guest property has changed.
888 </desc>
889 <param name="machineId" type="uuid" dir="in">
890 <desc>
891 ID of the machine this event relates to.
892 </desc>
893 </param>
894 <param name="name" type="wstring" dir="in">
895 <desc>
896 The name of the property that has changed.
897 </desc>
898 </param>
899 <param name="value" type="wstring" dir="in">
900 <desc>
901 The new property value.
902 </desc>
903 </param>
904 <param name="flags" type="wstring" dir="in">
905 <desc>
906 The new property flags.
907 </desc>
908 </param>
909 </method>
910
911 </interface>
912
913 <interface
914 name="IVirtualBox" extends="$dispatched"
915 uuid="557a07bc-e6ae-4520-a361-4a8493199137"
916 wsmap="managed"
917 >
918 <desc>
919 The IVirtualBox interface represents the main interface exposed by the
920 product that provides virtual machine management.
921
922 An instance of IVirtualBox is required for the product to do anything
923 useful. Even though the interface does not expose this, internally,
924 IVirtualBox is implemented as a singleton and actually lives in the
925 process of the VirtualBox server (VBoxSVC.exe). This makes sure that
926 IVirtualBox can track the state of all virtual machines on a particular
927 host, regardless of which frontend started them.
928
929 To enumerate all the virtual machines on the host, use the
930 <link to="IVirtualBox::machines"/> attribute.
931 </desc>
932
933 <attribute name="version" type="wstring" readonly="yes">
934 <desc>
935 A string representing the version number of the product. The
936 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
937 last number represents the build number and will frequently change.
938 </desc>
939 </attribute>
940
941 <attribute name="revision" type="unsigned long" readonly="yes">
942 <desc>
943 The internal build revision number of the product.
944 </desc>
945 </attribute>
946
947 <attribute name="packageType" type="wstring" readonly="yes">
948 <desc>
949 A string representing the package type of this product. The
950 format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
951 SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
952 is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
953 this.
954 </desc>
955 </attribute>
956
957 <attribute name="homeFolder" type="wstring" readonly="yes">
958 <desc>
959 Full path to the directory where the global settings file,
960 <tt>VirtualBox.xml</tt>, is stored.
961
962 In this version of VirtualBox, the value of this property is
963 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
964 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
965 as determined by the host OS), and cannot be changed.
966
967 This path is also used as the base to resolve relative paths in
968 places where relative paths are allowed (unless otherwise
969 expressly indicated).
970 </desc>
971 </attribute>
972
973 <attribute name="settingsFilePath" type="wstring" readonly="yes">
974 <desc>
975 Full name of the global settings file.
976 The value of this property corresponds to the value of
977 <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
978 </desc>
979 </attribute>
980
981 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
982 <desc>
983 Current version of the format of the global VirtualBox settings file
984 (<tt>VirtualBox.xml</tt>).
985
986 The version string has the following format:
987 <pre>
988 x.y-platform
989 </pre>
990 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
991 versions, and <tt>platform</tt> is the platform identifier.
992
993 The current version usually matches the value of the
994 <link to="#settingsFormatVersion"/> attribute unless the
995 settings file was created by an older version of VirtualBox and there
996 was a change of the settings file format since then.
997
998 Note that VirtualBox automatically converts settings files from older
999 versions to the most recent version when reading them (usually at
1000 VirtualBox startup) but it doesn't save the changes back until
1001 you call a method that implicitly saves settings (such as
1002 <link to="#setExtraData()"/>) or call <link to="#saveSettings()"/>
1003 explicitly. Therefore, if the value of this attribute differs from the
1004 value of <link to="#settingsFormatVersion"/>, then it
1005 means that the settings file was converted but the result of the
1006 conversion is not yet saved to disk.
1007
1008 The above feature may be used by interactive front-ends to inform users
1009 about the settings file format change and offer them to explicitly save
1010 all converted settings files (the global and VM-specific ones),
1011 optionally create bacup copies of the old settings files before saving,
1012 etc.
1013
1014 <see>settingsFormatVersion, saveSettingsWithBackup()</see>
1015 </desc>
1016 </attribute>
1017
1018 <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
1019 <desc>
1020 Most recent version of the settings file format.
1021
1022 The version string has the following format:
1023 <pre>
1024 x.y-platform
1025 </pre>
1026 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
1027 versions, and <tt>platform</tt> is the platform identifier.
1028
1029 VirtualBox uses this version of the format when saving settings files
1030 (either as a result of method calls that require to save settings or as
1031 a result of an explicit call to <link to="#saveSettings()"/>).
1032
1033 <see>settingsFileVersion</see>
1034 </desc>
1035 </attribute>
1036
1037 <attribute name="host" type="IHost" readonly="yes">
1038 <desc>Associated host object.</desc>
1039 </attribute>
1040
1041 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
1042 <desc>Associated system information object.</desc>
1043 </attribute>
1044
1045 <attribute name="machines" type="IMachineCollection" readonly="yes">
1046 <desc>
1047 Collection of machine objects registered within this VirtualBox
1048 instance.
1049 </desc>
1050 </attribute>
1051
1052 <attribute name="machines2" type="IMachine" readonly="yes" safearray="yes">
1053 <desc>
1054 Array of machine objects registered within this VirtualBox instance.
1055 </desc>
1056 </attribute>
1057
1058 <attribute name="hardDisks" type="IHardDiskCollection" readonly="yes">
1059 <desc>
1060 Collection of hard disk objects registered within this VirtualBox
1061 instance.
1062
1063 This collection contains only "top-level" (basic or independent) hard
1064 disk images, but not differencing ones. All differencing images of the
1065 given top-level image (i.e. all its children) can be enumerated using
1066 <link to="IHardDisk::children"/>.
1067 </desc>
1068 </attribute>
1069
1070 <attribute name="DVDImages" type="IDVDImageCollection" readonly="yes"/>
1071
1072 <attribute name="FloppyImages" type="IFloppyImageCollection" readonly="yes"/>
1073
1074 <attribute name="progressOperations" type="IProgressCollection" readonly="yes"/>
1075
1076 <attribute name="guestOSTypes" type="IGuestOSTypeCollection" readonly="yes"/>
1077
1078 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
1079 <desc>
1080 Collection of global shared folders. Global shared folders are
1081 available to all virtual machines.
1082
1083 New shared folders are added to the collection using
1084 <link to="#createSharedFolder"/>. Existing shared folders can be
1085 removed using <link to="#removeSharedFolder"/>.
1086
1087 <note>
1088 In the current version of the product, global shared folders are not
1089 implemented and therefore this collection is always empty.
1090 </note>
1091 </desc>
1092 </attribute>
1093
1094 <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
1095 <desc>
1096 Associated performance collector object.
1097 </desc>
1098 </attribute>
1099
1100 <method name="createMachine">
1101 <desc>
1102 Creates a new virtual machine.
1103
1104 The new machine will have "empty" default settings and will not
1105 yet be registered. The typical sequence to create a virtual machine
1106 is therefore something like this:
1107
1108 <ol>
1109 <li>Call this method (IVirtualBox::createMachine) to have a new
1110 machine created. The machine object returned is "mutable", i.e.
1111 automatically locked for the current session, as if
1112 <link to="#openSession" /> had been called on it.</li>
1113
1114 <li>Assign meaningful settings to the new machine by calling the
1115 respective methods.</li>
1116
1117 <li>Call <link to="IMachine::saveSettings" /> to have the settings written
1118 to the machine's XML settings file. The configuration of the newly
1119 created machine will not be saved to disk (and the settings subfolder
1120 and file, as described below, will not be created) until this method
1121 is called.</li>
1122
1123 <li>Call <link to="#registerMachine" /> to have the
1124 machine show up in the list of machines registered with VirtualBox.</li>
1125 </ol>
1126
1127 Every machine has a <i>settings file</i> that is used to store
1128 the machine configuration. This file is stored in the directory
1129 called <i>machine settings subfolder</i>. Unless specified otherwise,
1130 both the subfolder and the settings file will have a name that
1131 corresponds to the name of the virtual machine. You can specify
1132 where to create the machine settings subfolder using the @a
1133 baseFolder argument. The base folder can be absolute (full path)
1134 or relative to the <link to="IVirtualBox::homeFolder">
1135 VirtualBox home directory</link>.
1136
1137 If a null or empty string is given as the base folder (which is
1138 recommended), the <link to="ISystemProperties::defaultMachineFolder">
1139 default machine settings folder</link> will be used as the base
1140 folder to create the machine settings subfolder and file. In
1141 any case, the full path to the settings file will look like:
1142 <pre>
1143 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml
1144 </pre>
1145
1146 Optionally the UUID of the machine can be predefined. If this is
1147 not desired (i.e. a new UUID should be generated), pass just an
1148 empty or null UUID.
1149
1150 You should also specify a valid name for the machine.
1151 See the <link to="IMachine::name"/> property
1152 description for more details about the machine name.
1153
1154 The created machine remains
1155 unregistered until you call <link to="#registerMachine()"/>.
1156
1157 <note>
1158 There is no way to change the name of the settings file or
1159 subfolder of the created machine directly.
1160 </note>
1161 </desc>
1162 <param name="baseFolder" type="wstring" dir="in">
1163 <desc>
1164 Name of the folder where to create the machine settings
1165 subfolder containing the settings file.
1166 </desc>
1167 </param>
1168 <param name="name" type="wstring" dir="in">
1169 <desc>Machine name.</desc>
1170 </param>
1171 <param name="id" type="uuid" dir="in">
1172 <desc>
1173 UUID of the newly created VM, when non-null or non-empty.
1174 Otherwise a UUID is automatically generated.
1175 </desc>
1176 </param>
1177 <param name="machine" type="IMachine" dir="return">
1178 <desc>Created machine object.</desc>
1179 </param>
1180 </method>
1181
1182 <method name="createLegacyMachine">
1183 <desc>
1184 Creates a new virtual machine in "legacy" mode, using the
1185 specified settings file to store machine settings.
1186
1187 As opposed to machines created by <link to="#createMachine()"/>,
1188 the settings file of the machine created in "legacy" mode
1189 is not automatically renamed when the machine name is
1190 changed -- it will always remain the same as specified in this
1191 method call.
1192
1193 The specified settings file name can be absolute
1194 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1195 VirtualBox home directory</link>. If the file name doesn't
1196 contain an extension, the default extension (.xml) will be
1197 appended.
1198
1199 Optionally the UUID of the machine can be predefined. If this is
1200 not desired (i.e. a new UUID should be generated), pass just an
1201 empty or null UUID.
1202
1203 Note that the configuration of the newly created machine is not
1204 saved to disk (and therefore no settings file is created)
1205 until <link to="IMachine::saveSettings()"/> is called. If the
1206 specified settings file already exists,
1207 <link to="IMachine::saveSettings()"/> will return an error.
1208
1209 You should also specify a valid name for the machine.
1210 See the <link to="IMachine::name"/> property
1211 description for more details about the machine name.
1212
1213 The created machine remains
1214 unregistered until you call <link to="#registerMachine()"/>.
1215
1216 @deprecated This method may be removed later. It is better
1217 to use <link to="IVirtualBox::createMachine()"/>.
1218
1219 <note>
1220 There is no way to change the name of the settings file
1221 of the created machine.
1222 </note>
1223 </desc>
1224 <param name="settingsFile" type="wstring" dir="in">
1225 <desc>
1226 Name of the file where to store machine settings.
1227 </desc>
1228 </param>
1229 <param name="name" type="wstring" dir="in">
1230 <desc>Machine name.</desc>
1231 </param>
1232 <param name="id" type="uuid" dir="in">
1233 <desc>
1234 UUID of the newly created VM, when non-null or non-empty.
1235 Otherwise a UUID is automatically generated.
1236 </desc>
1237 </param>
1238 <param name="machine" type="IMachine" dir="return">
1239 <desc>Created machine object.</desc>
1240 </param>
1241 </method>
1242
1243 <method name="openMachine">
1244 <desc>
1245 Opens a virtual machine from the existing settings file.
1246 The opened machine remains unregistered until you call
1247 <link to="#registerMachine()"/>.
1248
1249 The specified settings file name can be absolute
1250 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1251 VirtualBox home directory</link>. This file must exist
1252 and must be a valid machine settings file whose contents
1253 will be used to construct the machine object.
1254
1255 @deprecated Will be removed soon.
1256 </desc>
1257 <param name="settingsFile" type="wstring" dir="in">
1258 <desc>
1259 Name of the machine settings file.
1260 </desc>
1261 </param>
1262 <param name="machine" type="IMachine" dir="return">
1263 <desc>Opened machine object.</desc>
1264 </param>
1265 <note>
1266 <link to="IMachine::settingsModified"/> will return
1267 false for the created machine, until any of machine settigs
1268 are changed.
1269 </note>
1270 </method>
1271
1272 <method name="registerMachine">
1273 <desc>
1274
1275 Registers the machine previously created using
1276 <link to="#createMachine()"/> or opened using
1277 <link to="#openMachine()"/> within this VirtualBox installation. After
1278 successful method invocation, the
1279 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1280 to all registered callbacks.
1281
1282 <note>
1283 This method implicitly calls <link to="IMachine::saveSettings"/>
1284 to save all current machine settings before registering it.
1285 </note>
1286
1287 </desc>
1288 <param name="machine" type="IMachine" dir="in"/>
1289 </method>
1290
1291 <method name="getMachine">
1292 <desc>
1293 Attempts to find a virtual machine given its UUID.
1294 To look up a machine by name, use <link to="IVirtualBox::findMachine" /> instead.
1295 </desc>
1296 <param name="id" type="uuid" dir="in"/>
1297 <param name="machine" type="IMachine" dir="return"/>
1298 </method>
1299
1300 <method name="findMachine">
1301 <desc>
1302 Attempts to find a virtual machine given its name.
1303 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" /> instead.
1304 </desc>
1305 <param name="name" type="wstring" dir="in"/>
1306 <param name="machine" type="IMachine" dir="return"/>
1307 </method>
1308
1309 <method name="unregisterMachine">
1310 <desc>
1311
1312 Unregisters the machine previously registered using
1313 <link to="#registerMachine"/>. After successful method invocation, the
1314 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1315 to all registered callbacks.
1316
1317 <note>
1318 The specified machine must not be in the Saved state, have an open
1319 (or a spawning) direct session associated with it, have snapshots or
1320 have hard disks attached.
1321 </note>
1322
1323 <note>
1324 This method implicitly calls <link to="IMachine::saveSettings"/> to
1325 save all current machine settings before unregistering it.
1326 </note>
1327
1328 <note>
1329 If the given machine is inaccessible (see
1330 <link to="IMachine::accessible"/>), it will be unregistered and
1331 fully uninitialized right afterwards. As a result, the returned
1332 machine object will be unusable and an attempt to call
1333 <b>any</b> method will return the "Object not ready" error.
1334 </note>
1335
1336 </desc>
1337 <param name="id" type="uuid" dir="in">
1338 <desc>UUID of the machine to unregister.</desc>
1339 </param>
1340 <param name="machine" type="IMachine" dir="return">
1341 <desc>Unregistered machine object.</desc>
1342 </param>
1343 </method>
1344
1345 <method name="createHardDisk">
1346 <desc>
1347
1348 Creates a new unregistered hard disk that will use the given
1349 storage type.
1350
1351 Most properties of the created hard disk object are
1352 uninitialized. Valid values must be assigned to them (and probalby
1353 some actions performed) to make the actual usage of this hard disk
1354 (<link to="#registerHardDisk()">register</link>, attach to a virtual
1355 machine, etc.). See the description of <link to="IHardDisk"/> and
1356 descriptions of storage type specific interfaces for more information.
1357
1358 <note>
1359 For hard disks using
1360 the <link
1361 to="HardDiskStorageType::VirtualDiskImage">VirtualDiskImage</link>
1362 storage type, an image file is not actually created until you call
1363 <link to="IVirtualDiskImage::createDynamicImage()"/> or
1364 <link to="IVirtualDiskImage::createFixedImage()"/>.
1365 </note>
1366
1367 </desc>
1368
1369 <param name="storageType" type="HardDiskStorageType" dir="in">
1370 <desc>Storage type of the hard disk image to create.</desc>
1371 </param>
1372 <param name="hardDisk" type="IHardDisk" dir="return">
1373 <desc>Created hard disk object of the given storage type.</desc>
1374 </param>
1375
1376 </method>
1377
1378 <method name="openHardDisk">
1379 <desc>
1380
1381 Opens a hard disk from an existing location.
1382
1383 This method tries to guess the
1384 <link to="HardDiskStorageType">hard disk storage type</link> from the
1385 format of the location string and from the contents of the resource the
1386 location points to. Currently, a <i>file path</i> is the only
1387 supported format for the location string which must point to either a
1388 VDI file or to a VMDK file. On success, an IHardDisk object will be
1389 returned that also implements the corresponding interface
1390 (IVirtualDiskImage or IVMDKImage, respectively). The
1391 <link to="IHardDisk::storageType"/> property may also be used to
1392 determine the storage type of the returned object (instead of trying
1393 to query one of these interfaces).
1394
1395 <note>
1396 The specified file path can be absolute (full path) or relative to
1397 the <link to="IVirtualBox::homeFolder">VirtualBox home
1398 directory</link>. If only a file name without any path is given,
1399 the <link to="ISystemProperties::defaultVDIFolder"> default VDI
1400 folder</link> will be used as a path to the image file.
1401 </note>
1402
1403 The opened hard disk remains unregistered
1404 until <link to="#registerHardDisk()"/> is called.
1405
1406 </desc>
1407
1408 <param name="location" type="wstring" dir="in">
1409 <desc>
1410 Location of the resource that contains a valid hard disk.
1411 </desc>
1412 </param>
1413 <param name="hardDisk" type="IHardDisk" dir="return">
1414 <desc>Opened hard disk object.</desc>
1415 </param>
1416 </method>
1417
1418 <method name="openVirtualDiskImage">
1419 <desc>
1420
1421 Opens a hard disk from an existing Virtual Disk Image file.
1422 The opened hard disk remains unregistered
1423 until <link to="#registerHardDisk()"/> is called.
1424
1425 @deprecated Use <link to="IVirtualBox::openHardDisk()"/> instead.
1426
1427 <note>Opening differencing images is not supported.</note>
1428
1429 <note>The specified file path can be absolute (full path) or
1430 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
1431 home directory</link>. If only a file name without any path is
1432 given, the <link to="ISystemProperties::defaultVDIFolder">
1433 default VDI folder</link> will be used as a path to the image
1434 file.</note>
1435
1436 </desc>
1437
1438 <param name="filePath" type="wstring" dir="in">
1439 <desc>
1440 Name of the file that contains a valid Virtual Disk Image.
1441 </desc>
1442 </param>
1443 <param name="image" type="IVirtualDiskImage" dir="return">
1444 <desc>Opened hard disk object.</desc>
1445 </param>
1446 </method>
1447
1448 <method name="registerHardDisk">
1449 <desc>
1450
1451 Registers the given hard disk within this VirtualBox
1452 installation. The hard disk must not be registered, must be
1453 <link to="IHardDisk::accessible"/> and must not be a
1454 differencing hard disk, otherwise the registration will fail.
1455
1456 </desc>
1457 <param name="hardDisk" type="IHardDisk" dir="in">
1458 <desc>Hard disk object to register.</desc>
1459 </param>
1460 </method>
1461
1462 <method name="getHardDisk" const="yes">
1463 <desc>
1464 Returns the registered hard disk with the given UUID.
1465 </desc>
1466 <param name="id" type="uuid" dir="in">
1467 <desc>UUID of the hard disk to look for.</desc>
1468 </param>
1469 <param name="hardDisk" type="IHardDisk" dir="return">
1470 <desc>Found hard disk object.</desc>
1471 </param>
1472 </method>
1473
1474 <method name="findHardDisk">
1475 <desc>
1476
1477 Returns a registered hard disk that uses the given location to
1478 store data. The search is done by comparing the
1479 value of the @a location argument to the
1480 <link to="IHardDisk::location"/> attribute of each registered
1481 hard disk.
1482
1483 For locations repesented by file paths (such as VDI and VMDK
1484 images), the specified location can be either an absolute file
1485 path or a path relative to
1486 the <link to="IVirtualBox::homeFolder"> VirtualBox home
1487 directory</link>. If only a file name without any path is
1488 given, the <link to="ISystemProperties::defaultVDIFolder">
1489 default VDI folder</link> will be used as a path to construct
1490 the absolute image file name to search for. Note that on host
1491 systems with case sensitive filesystems, a case sensitive
1492 comparison is performed, otherwise the case of symbols in the
1493 file path is ignored.
1494
1495 </desc>
1496 <param name="location" type="wstring" dir="in">
1497 <desc>Hard disk location specification to search for.</desc>
1498 </param>
1499 <param name="hardDisk" type="IHardDisk" dir="return">
1500 <desc>Found hard disk object.</desc>
1501 </param>
1502 </method>
1503
1504 <method name="findVirtualDiskImage">
1505 <desc>
1506
1507 Returns a registered hard disk that uses the given image file.
1508
1509 @deprecated Use <link to="IVirtualBox::findHardDisk()"/> instead.
1510
1511 <note>The specified file path can be absolute (full path) or
1512 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
1513 home directory</link>. If only a file name without any path is
1514 given, the <link to="ISystemProperties::defaultVDIFolder">
1515 default VDI folder</link> will be used as a path to the image
1516 file.</note>
1517
1518 <note>On host systems with case sensitive filesystems, a case
1519 sensitive comparison is performed, otherwise the case of symbols
1520 in the file path is ignored.</note>
1521
1522 </desc>
1523 <param name="filePath" type="wstring" dir="in">
1524 <desc>Virtual Disk Image file path to look for.</desc>
1525 </param>
1526 <param name="image" type="IVirtualDiskImage" dir="return">
1527 <desc>Found hard disk object.</desc>
1528 </param>
1529 </method>
1530
1531 <method name="unregisterHardDisk">
1532 <desc>
1533 Unregisters a hard disk previously registered using
1534 <link to="#registerHardDisk()"/>.
1535 <note>
1536 The specified hard disk must not be attached to any of
1537 the existing virtual machines and must not have children
1538 (differencing) hard disks.
1539 </note>
1540 </desc>
1541 <param name="id" type="uuid" dir="in">
1542 <desc>UUID of the hard disk to unregister.</desc>
1543 </param>
1544 <param name="hardDisk" type="IHardDisk" dir="return">
1545 <desc>Unregistered hard disk object.</desc>
1546 </param>
1547 </method>
1548
1549 <method name="openDVDImage">
1550 <desc>
1551 Opens the CD/DVD image contained in the specified file of
1552 the supported format and assigns it the given UUID. The opened
1553 image remains unregistered
1554 until <link to="#registerDVDImage()"/> is called.
1555 </desc>
1556 <param name="filePath" type="wstring" dir="in">
1557 <desc>
1558 Full name of the file that contains a valid
1559 CD/DVD image. Currently, only ISO images are supported.
1560 <note>
1561 The specified file name can be absolute or relative
1562 to the <link to="IVirtualBox::homeFolder">
1563 VirtualBox home directory</link>.
1564 </note>
1565 </desc>
1566 </param>
1567 <param name="id" type="uuid" dir="in">
1568 <desc>
1569 UUID to assign to the given image file within this
1570 VirtualBox installation. If an empty (null) UUID is
1571 specified, the system will randomly generate an UUID.
1572 </desc>
1573 </param>
1574 <param name="image" type="IDVDImage" dir="return">
1575 <desc>Opened CD/DVD image object.</desc>
1576 </param>
1577 </method>
1578
1579 <method name="registerDVDImage">
1580 <desc>
1581 Registers a CD/DVD image within this VirtualBox
1582 installation. The image must not be registered and must not
1583 be associated with the same image file as any of the already
1584 registered images, otherwise the registration will fail.
1585 </desc>
1586 <param name="image" type="IDVDImage" dir="in">
1587 <desc>CD/DVD image object to register.</desc>
1588 </param>
1589 </method>
1590
1591 <method name="getDVDImage">
1592 <desc>
1593 Returns a registered CD/DVD image with the given UUID.
1594 </desc>
1595 <param name="id" type="uuid" dir="in">
1596 <desc>UUID of the image to look for.</desc>
1597 </param>
1598 <param name="image" type="IDVDImage" dir="return">
1599 <desc>Found CD/DVD image object.</desc>
1600 </param>
1601 </method>
1602
1603 <method name="findDVDImage">
1604 <desc>
1605 Returns a registered CD/DVD image with the given image file.
1606 <note>
1607 On host systems with case sensitive filesystems, a case
1608 sensitive comparison is performed, otherwise the case of
1609 symbols in the file path is ignored.
1610 </note>
1611 </desc>
1612 <param name="filePath" type="wstring" dir="in">
1613 <desc>CD/DVD image file path to look for.</desc>
1614 </param>
1615 <param name="image" type="IDVDImage" dir="return">
1616 <desc>Found CD/DVD image object.</desc>
1617 </param>
1618 </method>
1619
1620 <method name="getDVDImageUsage">
1621 <desc>
1622 Returns the list of of UUIDs of all virtual machines that use
1623 the given CD/DVD image.
1624 </desc>
1625 <param name="id" type="uuid" dir="in">
1626 <desc>UUID of the image to get the usage information for.</desc>
1627 </param>
1628 <param name="usage" type="ResourceUsage" dir="in">
1629 <desc>Type of the usage (permanent, temporary or all).</desc>
1630 </param>
1631 <param name="machineIDs" type="wstring" dir="return">
1632 <desc>
1633 List of UUIDs of all machines that use the given image
1634 in the way specified by the usage parameter.
1635 The list is returned as a string containing UUIDs separated
1636 by spaces. A null string means that the image is not used.
1637 <note>
1638 When the usage type is <link to="ResourceUsage::All"/> and the image
1639 is used by the VM both permanently and temporarily, the VM's UUID
1640 will be present only once in the list.
1641 </note>
1642 </desc>
1643 </param>
1644 </method>
1645
1646 <method name="unregisterDVDImage">
1647 <desc>
1648 Unregisters the CD/DVD image previously registered using
1649 <link to="#registerDVDImage()"/>.
1650 <note>
1651 The specified image must not be mounted to any of
1652 the existing virtual machines.
1653 </note>
1654 </desc>
1655 <param name="id" type="uuid" dir="in">
1656 <desc>UUID of the CD/DVD image to unregister.</desc>
1657 </param>
1658 <param name="image" type="IDVDImage" dir="return">
1659 <desc>Unregistered image object.</desc>
1660 </param>
1661 </method>
1662
1663 <method name="openFloppyImage">
1664 <desc>
1665 Opens a floppy image contained in the specified file of
1666 the supported format and assigns it the given UUID. The opened
1667 image remains unregistered
1668 until <link to="#registerFloppyImage()"/> is called.
1669 </desc>
1670 <param name="filePath" type="wstring" dir="in">
1671 <desc>
1672 Full name of the file that contains a valid
1673 floppy image.
1674 <note>
1675 The specified file name can be absolute or relative
1676 to the <link to="IVirtualBox::homeFolder">
1677 VirtualBox home directory</link>.
1678 </note>
1679 </desc>
1680 </param>
1681 <param name="id" type="uuid" dir="in">
1682 <desc>
1683 UUID to assign to the given image file within this
1684 VirtualBox installation. If an empty (null) UUID is
1685 specified, the system will randomly generate an UUID.
1686 </desc>
1687 </param>
1688 <param name="image" type="IFloppyImage" dir="return">
1689 <desc>Opened CD/DVD image object.</desc>
1690 </param>
1691 </method>
1692
1693 <method name="registerFloppyImage">
1694 <desc>
1695 Registers a floppy image within this VirtualBox
1696 installation. The image must not be registered and must not
1697 be associated with the same image file as any of the already
1698 registered images, otherwise the registration will fail.
1699 </desc>
1700 <param name="image" type="IFloppyImage" dir="in">
1701 <desc>Floppy image object to register.</desc>
1702 </param>
1703 </method>
1704
1705 <method name="getFloppyImage">
1706 <desc>
1707 Returns a registered floppy image with the given UUID.
1708 </desc>
1709 <param name="id" type="uuid" dir="in">
1710 <desc>UUID of the image to look for.</desc>
1711 </param>
1712 <param name="image" type="IFloppyImage" dir="return">
1713 <desc>Found floppy image object.</desc>
1714 </param>
1715 </method>
1716
1717 <method name="findFloppyImage">
1718 <desc>
1719 Returns a registered floppy image with the given image file.
1720 <note>
1721 On host systems with case sensitive filesystems, a case
1722 sensitive comparison is performed, otherwise the case of
1723 symbols in the file path is ignored.
1724 </note>
1725 </desc>
1726 <param name="filePath" type="wstring" dir="in">
1727 <desc>Floppy image file path to look for.</desc>
1728 </param>
1729 <param name="image" type="IFloppyImage" dir="return">
1730 <desc>Found floppy image object.</desc>
1731 </param>
1732 </method>
1733
1734 <method name="getFloppyImageUsage">
1735 <desc>
1736 Returns the list of of UUIDs of all virtual machines that use
1737 the given floppy image.
1738 </desc>
1739 <param name="id" type="uuid" dir="in">
1740 <desc>UUID of the image to get the usage information for.</desc>
1741 </param>
1742 <param name="usage" type="ResourceUsage" dir="in">
1743 <desc>Type of the usage (permanent, temporary or all).</desc>
1744 </param>
1745 <param name="machineIDs" type="wstring" dir="return">
1746 <desc>
1747 List of UUIDs of all machines that use the given image
1748 in the way specified by the usage parameter.
1749 The list is returned as a string containing UUIDs separated
1750 by spaces. A null string means that the image is not used.
1751 <note>
1752 When the usage type is <link to="ResourceUsage::All"/> and the image
1753 is used by the VM both permanently and temporarily, the VM's UUID
1754 will be present only once in the list.
1755 </note>
1756 </desc>
1757 </param>
1758 </method>
1759
1760 <method name="unregisterFloppyImage">
1761 <desc>
1762 Unregisters the floppy image previously registered using
1763 <link to="#registerFloppyImage()"/>.
1764 <note>
1765 The specified image must not be mounted to any of
1766 the existing virtual machines.
1767 </note>
1768 </desc>
1769 <param name="id" type="uuid" dir="in">
1770 <desc>UUID of the floppy image to unregister.</desc>
1771 </param>
1772 <param name="image" type="IFloppyImage" dir="return">
1773 <desc>Unregistered image object.</desc>
1774 </param>
1775 </method>
1776
1777 <method name="getGuestOSType">
1778 <desc>
1779 Returns an object describing the specified guest OS type.
1780
1781 The requested guest OS type is specified using a string which is a
1782 mnemonic identifier of the guest operating system, such as
1783 <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
1784 particular virtual machine can be read or set using the
1785 <link to="IMachine::OSTypeId"/> attribute.
1786
1787 The <link to="IVirtualBox::guestOSTypes"/> collection contains all
1788 available guest OS type objects. Each object has an
1789 <link to="IGuestOSType::id"/> attribute which contains an identifier of
1790 the guest OS this object describes.
1791 </desc>
1792 <param name="id" type="wstring" dir="in">
1793 <desc>Guest OS type ID string.</desc>
1794 </param>
1795 <param name="type" type="IGuestOSType" dir="return">
1796 <desc>Guest OS type object.</desc>
1797 </param>
1798 </method>
1799
1800 <method name="createSharedFolder">
1801 <desc>
1802 Creates a new global shared folder by associating the given logical
1803 name with the given host path, adds it to the collection of shared
1804 folders and starts sharing it. Refer to the description of
1805 <link to="ISharedFolder"/> to read more about logical names.
1806 </desc>
1807 <param name="name" type="wstring" dir="in">
1808 <desc>Unique logical name of the shared folder.</desc>
1809 </param>
1810 <param name="hostPath" type="wstring" dir="in">
1811 <desc>Full path to the shared folder in the host file system.</desc>
1812 </param>
1813 <param name="writable" type="boolean" dir="in">
1814 <desc>Whether the share is writable or readonly</desc>
1815 </param>
1816 </method>
1817
1818 <method name="removeSharedFolder">
1819 <desc>
1820 Removes the global shared folder with the given name previously
1821 created by <link to="#createSharedFolder"/> from the collection of
1822 shared folders and stops sharing it.
1823 </desc>
1824 <param name="name" type="wstring" dir="in">
1825 <desc>Logical name of the shared folder to remove.</desc>
1826 </param>
1827 </method>
1828
1829 <method name="getNextExtraDataKey">
1830 <desc>
1831 Returns the global extra data key name following the supplied key.
1832
1833 An error is returned if the supplied @a key does not exist. @c NULL is
1834 returned in @a nextKey if the supplied key is the last key. When
1835 supplying @c NULL for the @a key, the first key item is returned in @a
1836 nextKey (if there is any). @a nextValue is an optional parameter and
1837 if supplied, the next key's value is returned in it.
1838 </desc>
1839 <param name="key" type="wstring" dir="in">
1840 <desc>Name of the data key to follow.</desc>
1841 </param>
1842 <param name="nextKey" type="wstring" dir="out">
1843 <desc>Name of the next data key.</desc>
1844 </param>
1845 <param name="nextValue" type="wstring" dir="out">
1846 <desc>Value of the next data key.</desc>
1847 </param>
1848 </method>
1849
1850 <method name="getExtraData">
1851 <desc>
1852 Returns associated global extra data.
1853
1854 If the requested data @a key does not exist, this function will
1855 succeed and return @c NULL in the @a value argument.
1856 </desc>
1857 <param name="key" type="wstring" dir="in">
1858 <desc>Name of the data key to get.</desc>
1859 </param>
1860 <param name="value" type="wstring" dir="return">
1861 <desc>Value of the requested data key.</desc>
1862 </param>
1863 </method>
1864
1865 <method name="setExtraData">
1866 <desc>
1867 Sets associated global extra data.
1868
1869 If you pass @c NULL as a key @a value, the given @a key will be
1870 deleted.
1871
1872 <note>
1873 Before performing the actual data change, this method will ask all
1874 registered callbacks using the
1875 <link to="IVirtualBoxCallback::onExtraDataCanChange()"/>
1876 notification for a permission. If one of the callbacks refuses the
1877 new value, the change will not be performed.
1878 </note>
1879 <note>
1880 On success, the
1881 <link to="IVirtualBoxCallback::onExtraDataChange()"/> notification
1882 is called to inform all registered callbacks about a successful data
1883 change.
1884 </note>
1885 </desc>
1886 <param name="key" type="wstring" dir="in">
1887 <desc>Name of the data key to set.</desc>
1888 </param>
1889 <param name="value" type="wstring" dir="in">
1890 <desc>Value to assign to the key.</desc>
1891 </param>
1892 </method>
1893
1894 <method name="openSession">
1895 <desc>
1896 Opens a new direct session with the given virtual machine.
1897
1898 Within the direct session context, it is possible to change
1899 all VM settings, as well as to execute the VM in the process
1900 space of the session object. There can be only one direct
1901 session open at a time for every virtual machine. In VirtualBox
1902 terminology, the machine becomes "mutable" after a session has
1903 been opened.
1904
1905 Upon successful return, the session object can be used to
1906 get access to the machine and to the VM console.
1907
1908 Note that the "mutable" machine object, on which you may want
1909 to invoke IMachine methods to change its settings, will be a
1910 different object from the immutable IMachine objects returned
1911 by various IVirtualBox methods. To obtain a mutable
1912 IMachine object, upon which you can invoke settings methods,
1913 use the "machine" attribute of the ISession object which represents
1914 your open session.
1915
1916 In other words, to change settings on a machine, the following
1917 sequence is typically performed:
1918
1919 <ol>
1920 <li>Call this method (openSession) to have a machine locked for
1921 the current session.</li>
1922
1923 <li>Obtain a mutable IMachine object from ISession::machine.</li>
1924
1925 <li>Change the settings of the machine.</li>
1926
1927 <li>Call IMachine::saveSettings.</li>
1928
1929 <li>Close the session by calling <link to="#close" />.</li>
1930 </ol>
1931 </desc>
1932 <param name="session" type="ISession" dir="in">
1933 <desc>
1934 Session object that will represent the opened session after
1935 successful method invocation. This object must not represent
1936 the already open session.
1937 <note>
1938 This session will be automatically closed if the
1939 VirtualBox server is terminated for some reason.
1940 </note>
1941 </desc>
1942 </param>
1943 <param name="machineId" type="uuid" dir="in">
1944 <desc>ID of the virtual machine to open a session with.</desc>
1945 </param>
1946 </method>
1947
1948 <method name="openRemoteSession">
1949 <desc>
1950 Opens a new remote session with the given virtual machine.
1951
1952 Opening a remote session causes the VirtualBox server to start a new
1953 process that opens a direct session with the given VM. The remote
1954 session provides some level of control over the VM execution to the
1955 caller (using the IConsole interface); however, within the remote
1956 session context, not all VM settings are available for modification.
1957
1958 This operation can take some time (a new VM is started in a new process,
1959 for which memory and other resources need to be set up, which can take
1960 a few seconds). Because of this, a progress object is returned to allow the
1961 caller to wait for this asynchronous operation to be completed. Until then,
1962 the remote session object remains in the closed state and accessing the
1963 machine or its console through it is invalid. It is recommended to use
1964 <link to="IProgress::waitForCompletion" /> or similar calls to wait for
1965 completion.
1966
1967 Currently supported session types (values of the @a type
1968 argument) are:
1969 <ul>
1970 <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
1971 <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
1972 </ul>
1973
1974 The @a environment argument is a string containing definitions of
1975 environment variables in the following format:
1976 @code
1977 NAME[=VALUE]\n
1978 NAME[=VALUE]\n
1979 ...
1980 @endcode
1981 where <tt>\\n</tt> is the new line character. These environment
1982 variables will be appended to the environment of the VirtualBox server
1983 process. If an environment variable exists both in the server process
1984 and in this list, the value from this list takes precedence over the
1985 server's variable. If the value of the environment variable is
1986 omitted, this variable will be removed from the resulting environment.
1987 If the environment string is @c null, the server environment is
1988 inherited by the started process as is.
1989
1990 <note>
1991 It is an error to open a remote session with the machine
1992 that already has an open direct session or waits until the
1993 previous request to open the remote session is completed
1994 (see <link to="IMachine::sessionState"/>).
1995 </note>
1996
1997 <note>
1998 The opened @a session will be automatically closed when
1999 the corresponding direct session dies or gets closed.
2000 </note>
2001
2002 <see>openExistingSession</see>
2003 </desc>
2004 <param name="session" type="ISession" dir="in">
2005 <desc>
2006 Session object that will represent the opened remote session
2007 after successful method invocation (this object must not
2008 represent an already open session).
2009 </desc>
2010 </param>
2011 <param name="machineId" type="uuid" dir="in">
2012 <desc>ID of the virtual machine to open a session with.</desc>
2013 </param>
2014 <param name="type" type="wstring" dir="in">
2015 <desc>
2016 Type of the remote session (case sensitive).
2017 </desc>
2018 </param>
2019 <param name="environment" type="wstring" dir="in">
2020 <desc>
2021 Environment to pass to the opened session (may be @c null).
2022 </desc>
2023 </param>
2024 <param name="progress" type="IProgress" dir="return">
2025 <desc>Progress object to track the operation completion.</desc>
2026 </param>
2027 </method>
2028
2029 <method name="openExistingSession">
2030 <desc>
2031 Opens a new remote session with the virtual machine for
2032 which a direct session is already open.
2033
2034 The remote session provides some level of control over the VM
2035 execution (using the IConsole interface) to the caller; however,
2036 within the remote session context, not all VM settings are available
2037 for modification.
2038
2039 As opposed to <link to="#openRemoteSession()"/>, the number of
2040 remote sessions opened this way is not limited by the API
2041
2042 <note>
2043 It is an error to open a remote session with the machine that
2044 doesn't have an open direct session.
2045 </note>
2046
2047 <see>openRemoteSession</see>
2048 </desc>
2049 <param name="session" type="ISession" dir="in">
2050 <desc>
2051 Session object that will represent the open remote session
2052 after successful method invocation. This object must not
2053 represent an already open session.
2054 <note>
2055 This session will be automatically closed when the peer
2056 (direct) session dies or gets closed.
2057 </note>
2058 </desc>
2059 </param>
2060 <param name="machineId" type="uuid" dir="in">
2061 <desc>ID of the virtual machine to open a session with.</desc>
2062 </param>
2063 </method>
2064
2065 <method name="registerCallback">
2066 <desc>
2067 Registers a new global VirtualBox callback. The methods of the given
2068 callback object will be called by VirtualBox when an appropriate
2069 event occurs.
2070 </desc>
2071 <param name="callback" type="IVirtualBoxCallback" dir="in">
2072 <desc>Callback object to register.</desc>
2073 </param>
2074 </method>
2075
2076 <method name="unregisterCallback">
2077 <desc>
2078 Unregisters the previously registered global VirtualBox callback.
2079 </desc>
2080 <param name="callback" type="IVirtualBoxCallback" dir="in">
2081 <desc>Callback object to unregister.</desc>
2082 </param>
2083 </method>
2084
2085 <method name="waitForPropertyChange">
2086 <desc>
2087 Blocks the caller until any of the properties represented by the @a
2088 what argument changes the value or until the given timeout interval
2089 expires.
2090
2091 The @a what argument is a comma separated list of propertiy masks that
2092 describe properties the caller is interested in. The property mask is
2093 a string in the following format:
2094
2095 <pre>
2096 [[group.]subgroup.]name
2097 </pre>
2098
2099 where @c name is the property name and @c group, @c subgroup are zero
2100 or or more property group specifiers. Each element (group or name) in
2101 the property mask may be either a latin string or an asterisk symbol
2102 (@c "*") which is used to match any string for the given element. A
2103 property mask that doesn't contain asterisk symbols represents a
2104 single fully qualified property name.
2105
2106 Groups in the fully qualified property name go from more generic (the
2107 left-most part) to more specific (the right-most part). The first
2108 element is usually a name of the object the property belongs to. The
2109 second element may be either a property name, or a child object name,
2110 or an index if the preceeding element names an object which is one of
2111 many objects of the same type. This way, property names form a
2112 hierarchy of properties. Here are some examples of property names:
2113
2114 <table>
2115 <tr>
2116 <td><tt>VirtualBox.version</tt></td>
2117 <td><link to="IVirtualBox::version"/> property</td>
2118 </tr>
2119 <tr>
2120 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
2121 <td><link to="IMachine::name"/> property of the machine with the
2122 given UUID</td>
2123 </tr>
2124 </table>
2125
2126 Most property names directly correspond to the properties of objects
2127 (components) provided by the VirtualBox library and may be used to
2128 track changes to these properties. However, there may be
2129 pseudo-property names that don't correspond to any existing object's
2130 property directly, as well as there may be object properties that
2131 don't have a corresponding property name that is understood by this
2132 method, and therefore changes to such properties cannot be
2133 tracked. See individual object's property descrcriptions to get a
2134 fully qualified property name that can be used with this method (if
2135 any).
2136
2137 There is a special property mask @c "*" (i.e. a string consisting of a
2138 single asterisk symbol) that can be used to match all properties.
2139 Below are more examples of property masks:
2140
2141 <table>
2142 <tr>
2143 <td><tt>VirtualBox.*</tt></td>
2144 <td>Track all properties of the VirtualBox object</td>
2145 </tr>
2146 <tr>
2147 <td><tt>Machine.*.name</tt></td>
2148 <td>Track changes to the <link to="IMachine::name"/> property of
2149 all registered virtual machines</td>
2150 </tr>
2151 </table>
2152
2153 </desc>
2154 <param name="what" type="wstring" dir="in">
2155 <desc>Comma separated list of property masks.</desc>
2156 </param>
2157 <param name="timeout" type="unsigned long" dir="in">
2158 <desc>
2159 Wait timeout in milliseconds.
2160 Specify -1 for an indefinite wait.
2161 </desc>
2162 </param>
2163 <param name="changed" type="wstring" dir="out">
2164 <desc>
2165 Comma separated list of properties that have been changed and caused
2166 this method to return to the caller.
2167 </desc>
2168 </param>
2169 <param name="values" type="wstring" dir="out">
2170 <desc>Reserved, not currently used.</desc>
2171 </param>
2172 </method>
2173
2174 <method name="saveSettings">
2175 <desc>
2176 Saves the global settings to the global settings file
2177 (<link to="#settingsFilePath"/>).
2178
2179 This method is only useful for explicitly saving the global settings
2180 file after it has been auto-converted from the old format to the most
2181 recent format (see <link to="#settingsFileVersion"/> for details).
2182 Normally, the global settings file is implicitly saved when a global
2183 setting is changed.
2184 </desc>
2185 </method>
2186
2187 <method name="saveSettingsWithBackup">
2188 <desc>
2189 Creates a backup copy of the global settings file
2190 (<link to="#settingsFilePath"/>) in case of auto-conversion, and then
2191 calls <link to="#saveSettings()"/>.
2192
2193 Note that the backup copy is created <b>only</b> if the settings file
2194 auto-conversion took place (see <link to="#settingsFileVersion"/> for
2195 details). Otherwise, this call is fully equivalent to
2196 <link to="#saveSettings()"/> and no backup copying is done.
2197
2198 The backup copy is created in the same directory where the original
2199 settings file is located. It is given the following file name:
2200 <pre>
2201 original.xml.x.y-platform.bak
2202 </pre>
2203 where <tt>original.xml</tt> is the original settings file name
2204 (excluding path), and <tt>x.y-platform</tt> is the version of the old
2205 format of the settings file (before auto-conversion).
2206
2207 If the given backup file already exists, this method will try to add the
2208 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
2209 0 to 9) and copy it again until it succeeds. If all suffixes are
2210 occupied, or if any other copy error occurs, this method will return a
2211 failure.
2212
2213 If the copy operation succeeds, the @a bakFileName return argument will
2214 receive a full path to the created backup file (for informational
2215 purposes). Note that this will happen even if the subsequent
2216 <link to="#saveSettings()"/> call performed by this method after the
2217 copy operation, fails.
2218
2219 <note>
2220 The VirtualBox API never calls this method. It is intended purely for
2221 the purposes of creating backup copies of the settings files by
2222 front-ends before saving the results of the automatically performed
2223 settings conversion to disk.
2224 </note>
2225
2226 <see>settingsFileVersion</see>
2227 </desc>
2228 <param name="bakFileName" type="wstring" dir="return">
2229 <desc>Full path to the created backup copy.</desc>
2230 </param>
2231 </method>
2232
2233 </interface>
2234
2235 <!--
2236 // IMachine
2237 /////////////////////////////////////////////////////////////////////////
2238 -->
2239
2240 <enumerator
2241 name="IMachineEnumerator" type="IMachine"
2242 uuid="1b554149-be0a-4465-9252-9ff8f420af55"
2243 />
2244
2245 <collection
2246 name="IMachineCollection" type="IMachine" enumerator="IMachineEnumerator"
2247 uuid="FD443EC1-3007-4F5B-9282-D72760A66916"
2248 readonly="yes"
2249 />
2250
2251 <interface
2252 name="IInternalMachineControl" extends="$unknown"
2253 uuid="4042ddf2-93d3-4749-8517-dde3f17ea630"
2254 internal="yes"
2255 wsmap="suppress"
2256 >
2257 <method name="updateState">
2258 <desc>
2259 Updates the VM state.
2260 <note>
2261 This operation will also update the settings file with
2262 the correct information about the saved state file
2263 and delete this file from disk when appropriate.
2264 </note>
2265 </desc>
2266 <param name="state" type="MachineState" dir="in"/>
2267 </method>
2268
2269 <method name="getIPCId">
2270 <param name="id" type="wstring" dir="return"/>
2271 </method>
2272
2273 <method name="runUSBDeviceFilters">
2274 <desc>
2275 Asks the server to run USB devices filters of the associated
2276 machine against the given USB device and tell if there is
2277 a match.
2278 <note>
2279 Intended to be used only for remote USB devices. Local
2280 ones don't require to call this method (this is done
2281 implicitly by the Host and USBProxyService).
2282 </note>
2283 </desc>
2284 <param name="device" type="IUSBDevice" dir="in"/>
2285 <param name="matched" type="boolean" dir="out"/>
2286 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
2287 </method>
2288
2289 <method name="captureUSBDevice">
2290 <desc>
2291 Requests a capture of the given host USB device.
2292 When the request is completed, the VM process will
2293 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
2294 notification.
2295 </desc>
2296 <param name="id" type="uuid" dir="in"/>
2297 </method>
2298
2299 <method name="detachUSBDevice">
2300 <desc>
2301 Notification that a VM is going to detach (done = false) or has
2302 already detached (done = true) the given USB device.
2303 When the done = true request is completed, the VM process will
2304 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
2305 notification.
2306 <note>
2307 In the done = true case, the server must run its own filters
2308 and filters of all VMs but this one on the detached device
2309 as if it were just attached to the host computer.
2310 </note>
2311 </desc>
2312 <param name="id" type="uuid" dir="in"/>
2313 <param name="done" type="boolean" dir="in"/>
2314 </method>
2315
2316 <method name="autoCaptureUSBDevices">
2317 <desc>
2318 Requests a capture all matching USB devices attached to the host.
2319 When the request is completed, the VM process will
2320 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
2321 notification per every captured device.
2322 </desc>
2323 </method>
2324
2325 <method name="detachAllUSBDevices">
2326 <desc>
2327 Notification that a VM that is being powered down. The done
2328 parameter indicates whether which stage of the power down
2329 we're at. When done = false the VM is announcing its
2330 intentions, while when done = true the VM is reporting
2331 what it has done.
2332 <note>
2333 In the done = true case, the server must run its own filters
2334 and filters of all VMs but this one on all detach devices as
2335 if they were just attached to the host computer.
2336 </note>
2337 </desc>
2338 <param name="done" type="boolean" dir="in"/>
2339 </method>
2340
2341 <method name="onSessionEnd">
2342 <desc>
2343 Triggered by the given session object when the session is about
2344 to close normally.
2345 </desc>
2346 <param name="session" type="ISession" dir="in">
2347 <desc>Session that is being closed</desc>
2348 </param>
2349 <param name="progress" type="IProgress" dir="return">
2350 <desc>
2351 Used to wait until the corresponding machine is actually
2352 deassociated from the given session on the server.
2353 Returned only when this session is a direct one.
2354 </desc>
2355 </param>
2356 </method>
2357
2358 <method name="beginSavingState">
2359 <desc>
2360 Called by the VM process to inform the server it wants to
2361 save the current state and stop the VM execution.
2362 </desc>
2363 <param name="progress" type="IProgress" dir="in">
2364 <desc>
2365 Progress object created by the VM process to wait until
2366 the state is saved.
2367 </desc>
2368 </param>
2369 <param name="stateFilePath" type="wstring" dir="out">
2370 <desc>
2371 File path the VM process must save the execution state to.
2372 </desc>
2373 </param>
2374 </method>
2375
2376 <method name="endSavingState">
2377 <desc>
2378 Called by the VM process to inform the server that saving
2379 the state previously requested by #beginSavingState is either
2380 successfully finished or there was a failure.
2381 </desc>
2382
2383 <param name="success" type="boolean" dir="in">
2384 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
2385 </param>
2386 </method>
2387
2388 <method name="adoptSavedState">
2389 <desc>
2390 Gets called by IConsole::adoptSavedState.
2391 </desc>
2392 <param name="savedStateFile" type="wstring" dir="in">
2393 <desc>Path to the saved state file to adopt.</desc>
2394 </param>
2395 </method>
2396
2397 <method name="beginTakingSnapshot">
2398 <desc>
2399 Called by the VM process to inform the server it wants to
2400 take a snapshot.
2401 </desc>
2402 <param name="initiator" type="IConsole" dir="in">
2403 <desc>The console object that initiated this call.</desc>
2404 </param>
2405 <param name="name" type="wstring" dir="in">
2406 <desc>Snapshot name</desc>
2407 </param>
2408 <param name="description" type="wstring" dir="in">
2409 <desc>Snapshot description</desc>
2410 </param>
2411 <param name="progress" type="IProgress" dir="in">
2412 <desc>
2413 Progress object created by the VM process to wait until
2414 the state is saved (only for online snapshots).
2415 </desc>
2416 </param>
2417 <param name="stateFilePath" type="wstring" dir="out">
2418 <desc>
2419 File path the VM process must save the execution state to.
2420 </desc>
2421 </param>
2422 <param name="serverProgress" type="IProgress" dir="out">
2423 <desc>
2424 Progress object created by the server process to wait until
2425 the snapshot is taken (VDI diff creation, etc.).
2426 </desc>
2427 </param>
2428 </method>
2429
2430 <method name="endTakingSnapshot">
2431 <desc>
2432 Called by the VM process to inform the server that the snapshot
2433 previously requested by #beginTakingSnapshot is either
2434 successfully taken or there was a failure.
2435 </desc>
2436
2437 <param name="success" type="boolean" dir="in">
2438 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
2439 </param>
2440 </method>
2441
2442 <method name="discardSnapshot">
2443 <desc>
2444 Gets called by IConsole::discardSnapshot.
2445 </desc>
2446 <param name="initiator" type="IConsole" dir="in">
2447 <desc>The console object that initiated this call.</desc>
2448 </param>
2449 <param name="id" type="uuid" dir="in">
2450 <desc>UUID of the snapshot to discard.</desc>
2451 </param>
2452 <param name="machineState" type="MachineState" dir="out">
2453 <desc>New machine state after this operation is started.</desc>
2454 </param>
2455 <param name="progress" type="IProgress" dir="return">
2456 <desc>Progress object to track the operation completion.</desc>
2457 </param>
2458 </method>
2459
2460 <method name="discardCurrentState">
2461 <desc>
2462 Gets called by IConsole::discardCurrentState.
2463 </desc>
2464 <param name="initiator" type="IConsole" dir="in">
2465 <desc>The console object that initiated this call.</desc>
2466 </param>
2467 <param name="machineState" type="MachineState" dir="out">
2468 <desc>New machine state after this operation is started.</desc>
2469 </param>
2470 <param name="progress" type="IProgress" dir="return">
2471 <desc>Progress object to track the operation completion.</desc>
2472 </param>
2473 </method>
2474
2475 <method name="discardCurrentSnapshotAndState">
2476 <desc>
2477 Gets called by IConsole::discardCurrentSnapshotAndState.
2478 </desc>
2479 <param name="initiator" type="IConsole" dir="in">
2480 <desc>The console object that initiated this call.</desc>
2481 </param>
2482 <param name="machineState" type="MachineState" dir="out">
2483 <desc>New machine state after this operation is started.</desc>
2484 </param>
2485 <param name="progress" type="IProgress" dir="return">
2486 <desc>Progress object to track the operation completion.</desc>
2487 </param>
2488 </method>
2489
2490 <method name="pullGuestProperties">
2491 <desc>
2492 Get the list of the guest properties matching a set of patterns along
2493 with their values, timestamps and flags and give responsibility for
2494 managing properties to the console.
2495 </desc>
2496 <param name="name" type="wstring" dir="out" safearray="yes">
2497 <desc>
2498 The names of the properties returned.
2499 </desc>
2500 </param>
2501 <param name="value" type="wstring" dir="out" safearray="yes">
2502 <desc>
2503 The values of the properties returned. The array entries match the
2504 corresponding entries in the @a name array.
2505 </desc>
2506 </param>
2507 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
2508 <desc>
2509 The timestamps of the properties returned. The array entries match
2510 the corresponding entries in the @a name array.
2511 </desc>
2512 </param>
2513 <param name="flags" type="wstring" dir="out" safearray="yes">
2514 <desc>
2515 The flags of the properties returned. The array entries match the
2516 corresponding entries in the @a name array.
2517 </desc>
2518 </param>
2519 </method>
2520
2521 <method name="pushGuestProperties">
2522 <desc>
2523 Set the list of the guest properties matching a set of patterns along
2524 with their values, timestamps and flags and return responsibility for
2525 managing properties to IMachine.
2526 </desc>
2527 <param name="name" type="wstring" dir="in" safearray="yes">
2528 <desc>
2529 The names of the properties.
2530 </desc>
2531 </param>
2532 <param name="value" type="wstring" dir="in" safearray="yes">
2533 <desc>
2534 The values of the properties. The array entries match the
2535 corresponding entries in the @a name array.
2536 </desc>
2537 </param>
2538 <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
2539 <desc>
2540 The timestamps of the properties. The array entries match
2541 the corresponding entries in the @a name array.
2542 </desc>
2543 </param>
2544 <param name="flags" type="wstring" dir="in" safearray="yes">
2545 <desc>
2546 The flags of the properties. The array entries match the
2547 corresponding entries in the @a name array.
2548 </desc>
2549 </param>
2550 </method>
2551 <method name="pushGuestProperty">
2552 <desc>
2553 Update a single guest property in IMachine.
2554 </desc>
2555 <param name="name" type="wstring" dir="in">
2556 <desc>
2557 The name of the property to be updated.
2558 </desc>
2559 </param>
2560 <param name="value" type="wstring" dir="in">
2561 <desc>
2562 The value of the property.
2563 </desc>
2564 </param>
2565 <param name="timestamp" type="unsigned long long" dir="in">
2566 <desc>
2567 The timestamp of the property.
2568 </desc>
2569 </param>
2570 <param name="flags" type="wstring" dir="in">
2571 <desc>
2572 The flags of the property.
2573 </desc>
2574 </param>
2575 </method>
2576 </interface>
2577
2578 <interface
2579 name="IBIOSSettings" extends="$unknown"
2580 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
2581 wsmap="managed"
2582 >
2583 <desc>
2584 The IBIOSSettings interface represents BIOS settings of the virtual
2585 machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
2586 </desc>
2587 <attribute name="logoFadeIn" type="boolean">
2588 <desc>Fade in flag for BIOS logo animation.</desc>
2589 </attribute>
2590
2591 <attribute name="logoFadeOut" type="boolean">
2592 <desc>Fade out flag for BIOS logo animation.</desc>
2593 </attribute>
2594
2595 <attribute name="logoDisplayTime" type="unsigned long">
2596 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
2597 </attribute>
2598
2599 <attribute name="logoImagePath" type="wstring">
2600 <desc>Local file system path for external BIOS image.</desc>
2601 </attribute>
2602
2603 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
2604 <desc>Mode of the BIOS boot device menu.</desc>
2605 </attribute>
2606
2607 <attribute name="ACPIEnabled" type="boolean">
2608 <desc>ACPI support flag.</desc>
2609 </attribute>
2610
2611 <attribute name="IOAPICEnabled" type="boolean">
2612 <desc>
2613 IO APIC support flag. If set, VirtualBox will provide an IO APIC
2614 and support IRQs above 15.
2615 </desc>
2616 </attribute>
2617
2618 <attribute name="timeOffset" type="long long">
2619 <desc>
2620 Offset in milliseconds from the host system time. This allows for
2621 guests running with a different system date/time than the host.
2622 It is equivalent to setting the system date/time in the BIOS other
2623 than it's not an absolute value but a relative one. Guest Additions
2624 time synchronization also honors this offset.
2625 </desc>
2626 </attribute>
2627
2628 <attribute name="PXEDebugEnabled" type="boolean">
2629 <desc>
2630 PXE debug logging flag. If set, VirtualBox will write extensive
2631 PXE trace information to the release log.
2632 </desc>
2633 </attribute>
2634
2635 <attribute name="IDEControllerType" type="IDEControllerType">
2636 <desc>
2637 Type of the virtual IDE controller. Depending on this value,
2638 VirtualBox will provide different virtual IDE hardware
2639 devices to the guest.
2640 </desc>
2641 </attribute>
2642
2643 </interface>
2644
2645 <interface
2646 name="IMachine" extends="$unknown"
2647 uuid="9797b8f2-0631-4db8-813d-4c63356b223b"
2648 wsmap="managed"
2649 >
2650 <desc>
2651 The IMachine interface represents a virtual machine, or guest, created
2652 in VirtualBox.
2653
2654 This interface is used in two contexts. First of all, a collection of
2655 objects implementing this interface is stored in the
2656 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
2657 machines that are currently registered with this VirtualBox
2658 installation. Also, once a session has been opened for the given virtual
2659 machine (e.g. the virtual machine is running), the machine object
2660 associated with the open session can be queried from the session object;
2661 see <link to="ISession"/> for details.
2662
2663 The main role of this interface is to expose the settings of the virtual
2664 machine and provide methods to change various aspects of the virtual
2665 machine's configuration. For machine objects stored in the
2666 <link to="IVirtualBox::machines"/> collection, all attributes are
2667 read-only unless explicitely stated otherwise in individual attribute
2668 and method descriptions. In order to change a machine setting, a session
2669 for this machine must be opened using one of
2670 <link to="IVirtualBox::openSession"/>,
2671 <link to="IVirtualBox::openRemoteSession"/> or
2672 <link to="IVirtualBox::openExistingSession"/> methdods. After the
2673 session has been successfully opened, a mutable machine object needs to
2674 be queried from the session object and then the desired settings changes
2675 can be applied to the returned object using IMachine attributes and
2676 methods. See the ISession interface description for more information
2677 about sessions.
2678
2679 Note that the IMachine interface does not provide methods to control
2680 virtual machine execution (such as start the machine, or power it
2681 down) -- these methods are grouped in a separate IConsole
2682 interface. Refer to the IConsole interface description to get more
2683 information about this topic.
2684
2685 <see>ISession, IConsole</see>
2686 </desc>
2687
2688 <attribute name="parent" type="IVirtualBox" readonly="yes">
2689 <desc>Associated parent obect.</desc>
2690 </attribute>
2691
2692 <attribute name="accessible" type="boolean" readonly="yes">
2693 <desc>
2694 Whether this virtual machine is currently accessible or not.
2695
2696 The machine is considered to be inaccessible when:
2697 <ul>
2698 <li>It is a registered virtual machine, and
2699 </li>
2700 <li>Its settings file is inaccessible (for example, it is
2701 located on a network share that is not accessible during
2702 VirtualBox startup, or becomes inaccessible later, or if
2703 the settings file can be read but is invalid).
2704 </li>
2705 </ul>
2706
2707 Otherwise, the value of this property is always <tt>true</tt>.
2708
2709 Every time this property is read, the accessibility state of
2710 this machine is re-evaluated. If the returned value is |false|,
2711 the <link to="#accessError"/> property may be used to get the
2712 detailed error information describing the reason of
2713 inaccessibility.
2714
2715 When the machine is inaccessible, only the following properties
2716 can be used on it:
2717 <ul>
2718 <li><link to="#parent"/></li>
2719 <li><link to="#id"/></li>
2720 <li><link to="#settingsFilePath"/></li>
2721 <li><link to="#accessible"/></li>
2722 <li><link to="#accessError"/></li>
2723 </ul>
2724
2725 An attempt to access any other property or method will return
2726 an error.
2727
2728 The only possible action you can perform on an inaccessible
2729 machine is to unregister it using the
2730 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
2731 for the accessibility state once more by querying this
2732 property).
2733
2734 <note>
2735 In the current implementation, once this property returns
2736 <tt>true</tt>, the machine will never become inaccessible
2737 later, even if its settings file cannot be successfully
2738 read/written any more (at least, until the VirtualBox
2739 server is restarted). This limitation may be removed in
2740 future releases.
2741 </note>
2742 </desc>
2743 </attribute>
2744
2745 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
2746 <desc>
2747 Error information describing the reason of machine
2748 inaccessibility.
2749
2750 Reading this property is only valid after the last call to
2751 <link to="#accessible"/> returned <tt>false</tt> (i.e. the
2752 machine is currently unaccessible). Otherwise, a null
2753 IVirtualBoxErrorInfo object will be returned.
2754 </desc>
2755 </attribute>
2756
2757 <attribute name="name" type="wstring">
2758 <desc>
2759 Name of the virtual machine.
2760
2761 Besides being used for human-readable identification purposes
2762 everywhere in VirtualBox, the virtual machine name is also used
2763 as a name of the machine's settings file and as a name of the
2764 subdirectory this settings file resides in. Thus, every time you
2765 change the value of this property, the settings file will be
2766 renamed once you call <link to="#saveSettings()"/> to confirm the
2767 change. The containing subdirectory will be also renamed, but
2768 only if it has exactly the same name as the settings file
2769 itself prior to changing this property (for backward compatibility
2770 with previous API releases). The above implies the following
2771 limitations:
2772 <ul>
2773 <li>The machine name cannot be empty.</li>
2774 <li>The machine name can contain only characters that are valid
2775 file name characters according to the rules of the file
2776 system used to store VirtualBox configuration.</li>
2777 <li>You cannot have two or more machines with the same name
2778 if they use the same subdirectory for storing the machine
2779 settings files.</li>
2780 <li>You cannot change the name of the machine if it is running,
2781 or if any file in the directory containing the settings file
2782 is being used by another running machine or by any other
2783 process in the host operating system at a time when
2784 <link to="#saveSettings()"/> is called.
2785 </li>
2786 </ul>
2787 If any of the above limitations are hit, <link to="#saveSettings()"/>
2788 will return an appropriate error message explaining the exact
2789 reason and the changes you made to this machine will not be
2790 saved.
2791 <note>
2792 For "legacy" machines created using the
2793 <link to="IVirtualBox::createLegacyMachine()"/> call,
2794 the above naming limitations do not apply because the
2795 machine name does not affect the settings file name.
2796 The settings file name remains the same as it was specified
2797 during machine creation and never changes.
2798 </note>
2799 </desc>
2800 </attribute>
2801
2802 <attribute name="description" type="wstring">
2803 <desc>
2804 Description of the virtual machine.
2805
2806 The description attribute can contain any text and is
2807 typically used to describe the hardware and software
2808 configuration of the virtual machine in detail (i.e. network
2809 settings, versions of the installed software and so on).
2810 </desc>
2811 </attribute>
2812
2813 <attribute name="id" type="uuid" readonly="yes">
2814 <desc>UUID of the virtual machine.</desc>
2815 </attribute>
2816
2817 <attribute name="OSTypeId" type="wstring">
2818 <desc>
2819 User-defined identifier of the Guest OS type.
2820 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
2821 an IGuestOSType object representing details about the given
2822 Guest OS type.
2823 <note>
2824 This value may differ from the value returned by
2825 <link to="IGuest::OSTypeId"/> if Guest Additions are
2826 installed to the guest OS.
2827 </note>
2828 </desc>
2829 </attribute>
2830
2831 <attribute name="memorySize" type="unsigned long">
2832 <desc>System memory size in megabytes.</desc>
2833 </attribute>
2834
2835 <attribute name="memoryBalloonSize" type="unsigned long">
2836 <desc>Initial memory balloon size in megabytes.</desc>
2837 </attribute>
2838
2839 <attribute name="statisticsUpdateInterval" type="unsigned long">
2840 <desc>Initial interval to update guest statistics in seconds.</desc>
2841 </attribute>
2842
2843 <attribute name="VRAMSize" type="unsigned long">
2844 <desc>Video memory size in megabytes.</desc>
2845 </attribute>
2846
2847 <attribute name="MonitorCount" type="unsigned long">
2848 <desc>
2849 Number of virtual monitors.
2850 <note>
2851 Only effective on Windows XP and later guests with
2852 Guest Additions installed.
2853 </note>
2854 </desc>
2855 </attribute>
2856
2857 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
2858 <desc>Object containing all BIOS settings.</desc>
2859 </attribute>
2860
2861 <attribute name="HWVirtExEnabled" type="TSBool">
2862 <desc>
2863 This setting determines whether VirtualBox will try to make use of
2864 the host CPU's hardware virtualization extensions such as Intel VT-x
2865 and AMD-V. Note that in case such extensions are not available,
2866 they will not be used.
2867 </desc>
2868 </attribute>
2869
2870 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
2871 <desc>
2872 This setting determines whether VirtualBox will try to make use of
2873 the nested paging extension of Intel VT-x and AMD-V. Note that in case
2874 such extensions are not available, they will not be used.
2875 </desc>
2876 </attribute>
2877
2878 <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
2879 <desc>
2880 This setting determines whether VirtualBox will try to make use of
2881 the VPID extension of Intel VT-x. Note that in case such extensions are
2882 not available, they will not be used.
2883 </desc>
2884 </attribute>
2885
2886 <attribute name="PAEEnabled" type="boolean" default="false">
2887 <desc>
2888 This setting determines whether VirtualBox will expose the Physical Address
2889 Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
2890 is not available, it will not be reported.
2891 </desc>
2892 </attribute>
2893
2894 <attribute name="snapshotFolder" type="wstring">
2895 <desc>
2896 Full path to the directory used to store snapshot data
2897 (difrerencing hard disks and saved state files) of this machine.
2898
2899 The initial value of this property is
2900 <tt>&lt;</tt><link to="#settingsFilePath">
2901 path_to_settings_file</link><tt>&gt;/&lt;</tt>
2902 <link to="#id">machine_uuid</link>
2903 <tt>&gt;</tt>.
2904
2905 Currently, it is an error to try to change this property on
2906 a machine that has snapshots (because this would require to
2907 move possibly large files to a different location).
2908 A separate method will be available for this purpose later.
2909
2910 <note>
2911 Setting this property to <tt>null</tt> will restore the
2912 initial value.
2913 </note>
2914 <note>
2915 When setting this property, the specified path can be
2916 absolute (full path) or relative to the directory where the
2917 <link to="#settingsFilePath">machine settings file</link>
2918 is located. When reading this property, a full path is
2919 always returned.
2920 </note>
2921 <note>
2922 The specified path may not exist, it will be created
2923 when necessary.
2924 </note>
2925 </desc>
2926 </attribute>
2927
2928 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
2929 <desc>VRDP server object.</desc>
2930 </attribute>
2931
2932 <attribute name="hardDiskAttachments" type="IHardDiskAttachmentCollection" readonly="yes">
2933 <desc>Collection of hard disks attached to the machine.</desc>
2934 </attribute>
2935
2936 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
2937 <desc>Associated DVD drive object.</desc>
2938 </attribute>
2939
2940 <attribute name="FloppyDrive" type="IFloppyDrive" readonly="yes">
2941 <desc>Associated floppy drive object.</desc>
2942 </attribute>
2943
2944 <attribute name="USBController" type="IUSBController" readonly="yes">
2945 <desc>
2946 Associated USB controller object.
2947
2948 <note>
2949 This method may set a @ref com_warnings "warning result code".
2950 </note>
2951 <note>
2952 If USB functionality is not avaliable in the given edition of
2953 VirtualBox, this method will set the result code to @c E_NOTIMPL.
2954 </note>
2955 </desc>
2956 </attribute>
2957
2958 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
2959 <desc>Associated audio adapter, always present.</desc>
2960 </attribute>
2961
2962 <attribute name="SATAController" type="ISATAController" readonly="yes">
2963 <desc>
2964 Associated SATA controller object.
2965 </desc>
2966 </attribute>
2967
2968 <attribute name="settingsFilePath" type="wstring" readonly="yes">
2969 <desc>
2970 Full name of the file containing machine settings data.
2971 </desc>
2972 </attribute>
2973
2974 <attribute name="settingsFileVersion" type="wstring" readonly="yes">
2975 <desc>
2976 Current version of the format of the settings file of this machine
2977 (<link to="#settingsFilePath"/>).
2978
2979 The version string has the following format:
2980 <pre>
2981 x.y-platform
2982 </pre>
2983 where <tt>x</tt> and <tt>y</tt> are the major and the minor format
2984 versions, and <tt>platform</tt> is the platform identifier.
2985
2986 The current version usually matches the value of the
2987 <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
2988 settings file was created by an older version of VirtualBox and there
2989 was a change of the settings file format since then.
2990
2991 Note that VirtualBox automatically converts settings files from older
2992 versions to the most recent version when reading them (usually at
2993 VirtualBox startup) but it doesn't save the changes back until
2994 you call a method that implicitly saves settings (such as
2995 <link to="#setExtraData()"/>) or call <link to="#saveSettings()"/>
2996 explicitly. Therefore, if the value of this attribute differs from the
2997 value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
2998 means that the settings file was converted but the result of the
2999 conversion is not yet saved to disk.
3000
3001 The above feature may be used by interactive front-ends to inform users
3002 about the settings file format change and offer them to explicitly save
3003 all converted settings files (the global and VM-specific ones),
3004 optionally create bacup copies of the old settings files before saving,
3005 etc.
3006
3007 <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
3008 </desc>
3009 </attribute>
3010
3011 <attribute name="settingsModified" type="boolean" readonly="yes">
3012 <desc>
3013 Whether the settings of this machine have been modified
3014 (but neither yet saved nor discarded).
3015 <note>
3016 Reading this property is only valid on instances returned
3017 by <link to="ISession::machine"/> and on new machines
3018 created by <link to="IVirtualBox::createMachine"/> or opened
3019 by <link to="IVirtualBox::openMachine"/> but not
3020 yet registered, or on unregistered machines after calling
3021 <link to="IVirtualBox::unregisterMachine"/>. For all other
3022 cases, the settigs can never be modified.
3023 </note>
3024 <note>
3025 For newly created unregistered machines, the value of this
3026 property is always TRUE until <link to="#saveSettings()"/>
3027 is called (no matter if any machine settings have been
3028 changed after the creation or not). For opened machines
3029 the value is set to FALSE (and then follows to normal rules).
3030 </note>
3031 </desc>
3032 </attribute>
3033
3034 <attribute name="sessionState" type="SessionState" readonly="yes">
3035 <desc>Current session state for this machine.</desc>
3036 </attribute>
3037
3038 <attribute name="sessionType" type="wstring" readonly="yes">
3039 <desc>
3040 Type of the session. If <link to="#sessionState"/> is
3041 SessionSpawning or SessionOpen, this attribute contains the
3042 same value as passed to the
3043 <link to="IVirtualBox::openRemoteSession()"/> method in the @a
3044 type parameter. If the session was opened directly using
3045 <link to="IVirtualBox::openSession()"/>, or if
3046 <link to="#sessionState"/> is SessionClosed, the value of this
3047 attribute is @c null.
3048 </desc>
3049 </attribute>
3050
3051 <attribute name="sessionPid" type="unsigned long" readonly="yes">
3052 <desc>
3053 Identifier of the session process. This attribute contains the
3054 platform-dependent identifier of the process that has opened a
3055 direct session for this machine using the
3056 <link to="IVirtualBox::openSession()"/> call. The returned value
3057 is only valid if <link to="#sessionState"/> is SessionOpen or
3058 SessionClosing (i.e. a session is currently open or being
3059 closed) by the time this property is read.
3060 </desc>
3061 </attribute>
3062
3063 <attribute name="state" type="MachineState" readonly="yes">
3064 <desc>Current execution state of this machine.</desc>
3065 </attribute>
3066
3067 <attribute name="lastStateChange" type="long long" readonly="yes">
3068 <desc>
3069 Time stamp of the last execution state change,
3070 in milliseconds since 1970-01-01 UTC.
3071 </desc>
3072 </attribute>
3073
3074 <attribute name="stateFilePath" type="wstring" readonly="yes">
3075 <desc>
3076 Full path to the file that stores the execution state of
3077 the machine when it is in the <link to="MachineState::Saved"/>
3078 state.
3079 <note>
3080 When the machine is not in the Saved state, this attribute
3081 <tt>null</tt>.
3082 </note>
3083 </desc>
3084 </attribute>
3085
3086 <attribute name="logFolder" type="wstring" readonly="yes">
3087 <desc>
3088 Full path to the folder that stores a set of rotated log files
3089 recorded during machine execution. The most recent log file is
3090 named <tt>VBox.log</tt>, the previous log file is
3091 named <tt>VBox.log.1</tt> and so on (upto <tt>VBox.log.3</tt>
3092 in the current version).
3093 </desc>
3094 </attribute>
3095
3096 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
3097 <desc>
3098 Current snapshot of this machine.
3099 <note>
3100 A <tt>null</tt> object is returned if the machine doesn't
3101 have snapshots.
3102 </note>
3103 <see><link to="ISnapshot"/></see>
3104 </desc>
3105 </attribute>
3106
3107 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
3108 <desc>
3109 Number of snapshots taken on this machine. Zero means the
3110 machine doesn't have any snapshots.
3111 </desc>
3112 </attribute>
3113
3114 <attribute name="currentStateModified" type="boolean" readonly="yes">
3115 <desc>
3116 Returns <tt>true</tt> if the current state of the machine is not
3117 identical to the state stored in the current snapshot.
3118
3119 The current state is identical to the current snapshot right
3120 after one of the following calls are made:
3121 <ul>
3122 <li><link to="IConsole::discardCurrentState"/> or
3123 <link to="IConsole::discardCurrentSnapshotAndState"/>
3124 </li>
3125 <li><link to="IConsole::takeSnapshot"/> (issued on a
3126 powered off or saved machine, for which
3127 <link to="#settingsModified"/> returns <tt>false</tt>)
3128 </li>
3129 <li><link to="IMachine::setCurrentSnapshot"/>
3130 </li>
3131 </ul>
3132
3133 The current state remains identical until one of the following
3134 happens:
3135 <ul>
3136 <li>settings of the machine are changed</li>
3137 <li>the saved state is discarded</li>
3138 <li>the current snapshot is discarded</li>
3139 <li>an attempt to execute the machine is made</li>
3140 </ul>
3141
3142 <note>
3143 For machines that don't have snapshots, this property is
3144 always <tt>false</tt>.
3145 </note>
3146 </desc>
3147 </attribute>
3148
3149 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
3150 <desc>
3151 Collection of shared folders for this machine (permanent shared
3152 folders). These folders are shared automatically at machine startup
3153 and available only to the guest OS installed within this machine.
3154
3155 New shared folders are added to the collection using
3156 <link to="#createSharedFolder"/>. Existing shared folders can be
3157 removed using <link to="#removeSharedFolder"/>.
3158 </desc>
3159 </attribute>
3160
3161 <attribute name="clipboardMode" type="ClipboardMode">
3162 <desc>
3163 Synchronization mode between the host OS clipboard
3164 and the guest OS clipboard.
3165 </desc>
3166 </attribute>
3167
3168 <method name="setBootOrder">
3169 <desc>
3170 Puts the given device to the specified position in
3171 the boot order.
3172
3173 To indicate that no device is associated with the given position,
3174 <link to="DeviceType::Null"/> should be used.
3175
3176 @todo setHardDiskBootOrder(), setNetworkBootOrder()
3177 </desc>
3178 <param name="position" type="unsigned long" dir="in">
3179 <desc>
3180 Position in the boot order (<tt>1</tt> to the total number of
3181 devices the machine can boot from, as returned by
3182 <link to="ISystemProperties::maxBootPosition"/>).
3183 </desc>
3184 </param>
3185 <param name="device" type="DeviceType" dir="in">
3186 <desc>
3187 The type of the device used to boot at the given position.
3188 </desc>
3189 </param>
3190 </method>
3191
3192 <method name="getBootOrder" const="yes">
3193 <desc>
3194 Returns the device type that occupies the specified
3195 position in the boot order.
3196
3197 @todo [remove?]
3198 If the machine can have more than one device of the returned type
3199 (such as hard disks), then a separate method should be used to
3200 retrieve the individual device that occupies the given position.
3201
3202 If here are no devices at the given position, then
3203 <link to="DeviceType::Null"/> is returned.
3204
3205 @todo getHardDiskBootOrder(), getNetworkBootOrder()
3206 </desc>
3207 <param name="order" type="unsigned long" dir="in">
3208 <desc>
3209 Position in the boot order (<tt>1</tt> to the total number of
3210 devices the machine can boot from, as returned by
3211 <link to="ISystemProperties::maxBootPosition"/>).
3212 </desc>
3213 </param>
3214 <param name="device" type="DeviceType" dir="return">
3215 <desc>
3216 Device at the given position.
3217 </desc>
3218 </param>
3219 </method>
3220
3221 <method name="attachHardDisk">
3222 <desc>
3223
3224 Attaches a virtual hard disk identified by the given UUID to the
3225 given device slot of the given channel on the given bus. The
3226 specified device slot must not have another disk attached and the
3227 given hard disk must not be already attached to this machine.
3228
3229 See <link to="IHardDisk"/> for detailed information about
3230 attaching hard disks.
3231
3232 <note>You cannot attach a hard disk to a running machine. Also,
3233 you cannot attach a hard disk to a newly created machine until
3234 it is registered.</note>
3235
3236 <note>Attaching a hard disk to a machine creates a <i>lazy</i>
3237 attachment. In particular, no differeincing images are
3238 actually created until <link to="#saveSettings()"/> is called to
3239 commit all changed settings.</note>
3240
3241 </desc>
3242 <param name="id" type="uuid" dir="in">
3243 <desc>UUID of the hard disk to attach.</desc>
3244 </param>
3245 <param name="bus" type="StorageBus" dir="in">
3246 <desc>Type of storage bus to use (IDE or SATA).</desc>
3247 </param>
3248 <param name="channel" type="long" dir="in">
3249 <desc>Channel to attach the hard disk to. For IDE controllers,
3250 this can either be 0 or 1, for the primary or secondary controller,
3251 respectively.</desc>
3252 </param>
3253 <param name="device" type="long" dir="in">
3254 <desc>Device slot in the given channel to attach the hard disk to.
3255 For IDE devices, within each channel (0 or 1), this can again be
3256 0 or 1, for master or slave, respectively.</desc>
3257 </param>
3258 </method>
3259
3260 <method name="getHardDisk" const="yes">
3261 <desc>
3262 Returns the hard disk attached to the
3263 given controller under the specified device number.
3264 </desc>
3265 <param name="bus" type="StorageBus" dir="in"/>
3266 <param name="channel" type="long" dir="in"/>
3267 <param name="device" type="long" dir="in"/>
3268 <param name="hardDisk" type="IHardDisk" dir="return"/>
3269 </method>
3270
3271 <method name="detachHardDisk">
3272 <desc>
3273
3274 Detaches the hard disk drive attached to the given device slot
3275 of the given controller.
3276
3277 See <link to="IHardDisk"/> for detailed information about
3278 attaching hard disks.
3279
3280 <note>You cannot detach a hard disk from a running
3281 machine.</note>
3282
3283 <note>
3284 Detaching a hard disk from a machine creates a <i>lazy</i>
3285 detachment. In particular, if the detached hard disk is a
3286 differencing hard disk, it is not actually deleted until
3287 <link to="#saveSettings()"/> is called to commit all changed settings.
3288 Keep in mind, that doing <link to="#saveSettings()"/> will
3289 <b>physically delete</b> all detached differencing hard disks,
3290 so be careful.
3291 </note>
3292
3293 </desc>
3294 <param name="bus" type="StorageBus" dir="in">
3295 <desc>Bus to dettach the hard disk from.</desc>
3296 </param>
3297 <param name="channel" type="long" dir="in">
3298 <desc>Channel number to dettach the hard disk from.</desc>
3299 </param>
3300 <param name="device" type="long" dir="in">
3301 <desc>Device slot number to dettach the hard disk from.</desc>
3302 </param>
3303 </method>
3304
3305 <method name="getNetworkAdapter" const="yes">
3306 <desc>
3307 Returns the network adapter associated with the given slot.
3308 Slots are numbered sequentially, starting with zero. The total
3309 number of adapters per every machine is defined by the
3310 <link to="ISystemProperties::networkAdapterCount"/> property,
3311 so the maximum slot number is one less than that property's value.
3312 </desc>
3313 <param name="slot" type="unsigned long" dir="in"/>
3314 <param name="adapter" type="INetworkAdapter" dir="return"/>
3315 </method>
3316
3317 <method name="getSerialPort" const="yes">
3318 <desc>
3319 Returns the serial port associated with the given slot.
3320 Slots are numbered sequentially, starting with zero. The total
3321 number of serial ports per every machine is defined by the
3322 <link to="ISystemProperties::serialPortCount"/> property,
3323 so the maximum slot number is one less than that property's value.
3324 </desc>
3325 <param name="slot" type="unsigned long" dir="in"/>
3326 <param name="port" type="ISerialPort" dir="return"/>
3327 </method>
3328
3329 <method name="getParallelPort" const="yes">
3330 <desc>
3331 Returns the parallel port associated with the given slot.
3332 Slots are numbered sequentially, starting with zero. The total
3333 number of parallel ports per every machine is defined by the
3334 <link to="ISystemProperties::parallelPortCount"/> property,
3335 so the maximum slot number is one less than that property's value.
3336 </desc>
3337 <param name="slot" type="unsigned long" dir="in"/>
3338 <param name="port" type="IParallelPort" dir="return"/>
3339 </method>
3340
3341 <method name="getNextExtraDataKey">
3342 <desc>
3343 Returns the machine-specific extra data key name following the
3344 supplied key.
3345
3346 An error is returned if the supplied @a key does not exist. @c NULL is
3347 returned in @a nextKey if the supplied key is the last key. When
3348 supplying @c NULL for the @a key, the first key item is returned in @a
3349 nextKey (if there is any). @a nextValue is an optional parameter and
3350 if supplied, the next key's value is returned in it.
3351 </desc>
3352 <param name="key" type="wstring" dir="in">
3353 <desc>Name of the data key to follow.</desc>
3354 </param>
3355 <param name="nextKey" type="wstring" dir="out">
3356 <desc>Name of the next data key.</desc>
3357 </param>
3358 <param name="nextValue" type="wstring" dir="out">
3359 <desc>Value of the next data key.</desc>
3360 </param>
3361 </method>
3362
3363 <method name="getExtraData">
3364 <desc>
3365 Returns associated machine-specific extra data.
3366
3367 If the reuqested data @a key does not exist, this function will
3368 succeed and return @c NULL in the @a value argument.
3369 </desc>
3370 <param name="key" type="wstring" dir="in">
3371 <desc>Name of the data key to get.</desc>
3372 </param>
3373 <param name="value" type="wstring" dir="return">
3374 <desc>Value of the requested data key.</desc>
3375 </param>
3376 </method>
3377
3378 <method name="setExtraData">
3379 <desc>
3380 Sets associated machine-specific extra data.
3381
3382 If you pass @c NULL as a key @a vaule, the given @a key will be
3383 deleted.
3384
3385 <note>
3386 Before performing the actual data change, this method will ask all
3387 registered callbacks using the
3388 <link to="IVirtualBoxCallback::onExtraDataCanChange()"/>
3389 notification for a permission. If one of the callbacks refuses the
3390 new value, the change will not be performed.
3391 </note>
3392 <note>
3393 On success, the
3394 <link to="IVirtualBoxCallback::onExtraDataChange()"/> notification
3395 is called to inform all registered callbacks about a successful data
3396 change.
3397 </note>
3398 <note>
3399 This method can be called outside the machine session and therefore
3400 it's a caller's responsibility to handle possible race conditions
3401 when several clients change the same key at the same time.
3402 </note>
3403 </desc>
3404 <param name="key" type="wstring" dir="in">
3405 <desc>Name of the data key to set.</desc>
3406 </param>
3407 <param name="value" type="wstring" dir="in">
3408 <desc>Value to assign to the key.</desc>
3409 </param>
3410 </method>
3411
3412 <method name="saveSettings">
3413 <desc>
3414 Saves any changes to machine settings made since the session
3415 has been opened or a new machine has been created, or since the
3416 last call to <link to="#saveSettings()"/> or <link to="#discardSettings()"/>.
3417 For registered machines, new settings become visible to all
3418 other VirtualBox clients after successful invocation of this
3419 method.
3420 <note>
3421 The method sends <link to="IVirtualBoxCallback::onMachineDataChange()"/>
3422 notification event after the configuration has been successfully
3423 saved (only for registered machines).
3424 </note>
3425 <note>
3426 Calling this method is only valid on instances returned
3427 by <link to="ISession::machine"/> and on new machines
3428 created by <link to="IVirtualBox::createMachine"/> but not
3429 yet registered, or on unregistered machines after calling
3430 <link to="IVirtualBox::unregisterMachine"/>.
3431 </note>
3432 </desc>
3433 </method>
3434
3435 <method name="saveSettingsWithBackup">
3436 <desc>
3437 Creates a backup copy of the machine settings file (<link
3438 to="#settingsFilePath"/>) in case of auto-conversion, and then calls
3439 <link to="#saveSettings()"/>.
3440
3441 Note that the backup copy is created <b>only</b> if the settings file
3442 auto-conversion took place (see <link to="#settingsFileVersion"/> for
3443 details). Otherwise, this call is fully equivalent to
3444 <link to="#saveSettings()"/> and no backup copying is done.
3445
3446 The backup copy is created in the same directory where the original
3447 settings file is located. It is given the following file name:
3448 <pre>
3449 original.xml.x.y-platform.bak
3450 </pre>
3451 where <tt>original.xml</tt> is the original settings file name
3452 (excluding path), and <tt>x.y-platform</tt> is the version of the old
3453 format of the settings file (before auto-conversion).
3454
3455 If the given backup file already exists, this method will try to add the
3456 <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
3457 0 to 9) and copy it again until it succeeds. If all suffixes are
3458 occupied, or if any other copy error occurs, this method will return a
3459 failure.
3460
3461 If the copy operation succeeds, the @a bakFileName return argument will
3462 receive a full path to the created backup file (for informational
3463 purposes). Note that this will happen even if the subsequent
3464 <link to="#saveSettings()"/> call performed by this method after the
3465 copy operation, fails.
3466
3467 <note>
3468 The VirtualBox API never calls this method. It is intended purely for
3469 the purposes of creating backup copies of the settings files by
3470 front-ends before saving the results of the automatically performed
3471 settings conversion to disk.
3472 </note>
3473
3474 <see>settingsFileVersion</see>
3475 </desc>
3476 <param name="bakFileName" type="wstring" dir="return">
3477 <desc>Full path to the created backup copy.</desc>
3478 </param>
3479 </method>
3480
3481 <method name="discardSettings">
3482 <desc>
3483 Discards any changes to the machine settings made since the session
3484 has been opened or since the last call to <link to="#saveSettings()"/>
3485 or <link to="#discardSettings"/>.
3486 <note>
3487 Calling this method is only valid on instances returned
3488 by <link to="ISession::machine"/> and on new machines
3489 created by <link to="IVirtualBox::createMachine"/> or
3490 opened by <link to="IVirtualBox::openMachine"/> but not
3491 yet registered, or on unregistered machines after calling
3492 <link to="IVirtualBox::unregisterMachine"/>.
3493 </note>
3494 </desc>
3495 </method>
3496
3497 <method name="deleteSettings">
3498 <desc>
3499 Deletes the settings file of this machine from disk.
3500 The machine must not be registered in order for this operation
3501 to succeed.
3502 <note>
3503 <link to="#settingsModified"/> will return TRUE after this
3504 method successfully returns.
3505 </note>
3506 <note>
3507 Calling this method is only valid on instances returned
3508 by <link to="ISession::machine"/> and on new machines
3509 created by <link to="IVirtualBox::createMachine"/> or
3510 opened by <link to="IVirtualBox::openMachine"/> but not
3511 yet registered, or on unregistered machines after calling
3512 <link to="IVirtualBox::unregisterMachine"/>.
3513 </note>
3514 <note>
3515 The deleted machine settings file can be restored (saved again)
3516 by calling <link to="#saveSettings()"/>.
3517 </note>
3518 </desc>
3519 </method>
3520
3521 <method name="getSnapshot">
3522 <desc>
3523 Returns a snapshot of this machine with the given UUID.
3524 A <tt>null</tt> UUID can be used to obtain the first snapshot
3525 taken on this machine. This is useful if you want to traverse
3526 the whole tree of snapshots starting from the root.
3527 </desc>
3528 <param name="id" type="uuid" dir="in">
3529 <desc>UUID of the snapshot to get</desc>
3530 </param>
3531 <param name="snapshot" type="ISnapshot" dir="return">
3532 <desc>Snapshot object with the given UUID.</desc>
3533 </param>
3534 </method>
3535
3536 <method name="findSnapshot">
3537 <desc>
3538 Returns a snapshot of this machine with the given name.
3539 </desc>
3540 <param name="name" type="wstring" dir="in">
3541 <desc>Name of the snapshot to find</desc>
3542 </param>
3543 <param name="snapshot" type="ISnapshot" dir="return">
3544 <desc>Snapshot object with the given name.</desc>
3545 </param>
3546 </method>
3547
3548 <method name="setCurrentSnapshot">
3549 <desc>
3550 Sets the current snapshot of this machine.
3551 <note>
3552 In the current implementation, this operation is not
3553 implemented.
3554 </note>
3555 </desc>
3556 <param name="id" type="uuid" dir="in">
3557 <desc>UUID of the snapshot to set as the current snapshot.</desc>
3558 </param>
3559 </method>
3560
3561 <method name="createSharedFolder">
3562 <desc>
3563 Creates a new permanent shared folder by associating the given logical
3564 name with the given host path, adds it to the collection of shared
3565 folders and starts sharing it. Refer to the description of
3566 <link to="ISharedFolder"/> to read more about logical names.
3567 </desc>
3568 <param name="name" type="wstring" dir="in">
3569 <desc>Unique logical name of the shared folder.</desc>
3570 </param>
3571 <param name="hostPath" type="wstring" dir="in">
3572 <desc>Full path to the shared folder in the host file system.</desc>
3573 </param>
3574 <param name="writable" type="boolean" dir="in">
3575 <desc>Whether the share is writable or readonly</desc>
3576 </param>
3577 </method>
3578
3579 <method name="removeSharedFolder">
3580 <desc>
3581 Removes the permanent shared folder with the given name previously
3582 created by <link to="#createSharedFolder"/> from the collection of
3583 shared folders and stops sharing it.
3584 </desc>
3585 <param name="name" type="wstring" dir="in">
3586 <desc>Logical name of the shared folder to remove.</desc>
3587 </param>
3588 </method>
3589
3590 <method name="canShowConsoleWindow">
3591 <desc>
3592 Returns @c true if the VM console process can activate the
3593 console window and bring it to foreground on the desktop of
3594 the host PC.
3595 <note>
3596 This method will fail if a session for this machine is not
3597 currently open.
3598 </note>
3599 </desc>
3600 <param name="canShow" type="boolean" dir="return">
3601 <desc>
3602 @c true if the console window can be shown and @c
3603 false otherwise.
3604 </desc>
3605 </param>
3606 </method>
3607
3608 <method name="showConsoleWindow">
3609 <desc>
3610 Activates the console window and brings it to foreground on
3611 the desktop of the host PC. Many modern window managers on
3612 many platforms implement some sort of focus stealing
3613 prevention logic, so that it may be impossible to activate
3614 a window without the help of the currently active
3615 application. In this case, this method will return a non-zero
3616 identifier that represents the top-level window of the VM
3617 console process. The caller, if it represents a currently
3618 active process, is responsible to use this identifier (in a
3619 platform-dependent manner) to perform actual window
3620 activation.
3621 <note>
3622 This method will fail if a session for this machine is not
3623 currently open.
3624 </note>
3625 </desc>
3626 <param name="winId" type="unsigned long long" dir="return">
3627 <desc>
3628 Platform-dependent identifier of the top-level VM console
3629 window, or zero if this method has performed all actions
3630 necessary to implement the <i>show window</i> semantics for
3631 the given platform and/or VirtualBox front-end.
3632 </desc>
3633 </param>
3634 </method>
3635
3636 <method name="getGuestProperty">
3637 <desc>
3638 Reads an entry from the machine's guest property store.
3639 </desc>
3640 <param name="name" type="wstring" dir="in">
3641 <desc>
3642 The name of the property to read.
3643 </desc>
3644 </param>
3645 <param name="value" type="wstring" dir="out">
3646 <desc>
3647 The value of the property. If the property does not exist then this
3648 will be empty.
3649 </desc>
3650 </param>
3651 <param name="timestamp" type="unsigned long long" dir="out">
3652 <desc>
3653 The time at which the property was last modified, as seen by the
3654 server process.
3655 </desc>
3656 </param>
3657 <param name="flags" type="wstring" dir="out">
3658 <desc>
3659 Additional property parameters, passed as a comma-separated list of
3660 "name=value" type entries.
3661 </desc>
3662 </param>
3663 </method>
3664
3665 <method name="getGuestPropertyValue">
3666 <desc>
3667 Reads a value from the machine's guest property store.
3668 </desc>
3669 <param name="property" type="wstring" dir="in">
3670 <desc>
3671 The name of the property to read.
3672 </desc>
3673 </param>
3674 <param name="value" type="wstring" dir="return">
3675 <desc>
3676 The value of the property. If the property does not exist then this
3677 will be empty.
3678 </desc>
3679 </param>
3680 </method>
3681
3682 <method name="getGuestPropertyTimestamp">
3683 <desc>
3684 Reads a property timestamp from the machine's guest property store.
3685 </desc>
3686 <param name="property" type="wstring" dir="in">
3687 <desc>
3688 The name of the property to read.
3689 </desc>
3690 </param>
3691 <param name="value" type="unsigned long long" dir="return">
3692 <desc>
3693 The timestamp. If the property does not exist then this will be
3694 empty.
3695 </desc>
3696 </param>
3697 </method>
3698
3699 <method name="setGuestProperty">
3700 <desc>
3701 Sets, changes or deletes an entry in the machine's guest property
3702 store.
3703 </desc>
3704 <param name="property" type="wstring" dir="in">
3705 <desc>
3706 The name of the property to set, change or delete.
3707 </desc>
3708 </param>
3709 <param name="value" type="wstring" dir="in">
3710 <desc>
3711 The new value of the property to set, change or delete. If the
3712 property does not yet exist and value is non-empty, it will be
3713 created. If the value is empty, the key will be deleted if it
3714 exists.
3715 </desc>
3716 </param>
3717 <param name="flags" type="wstring" dir="in">
3718 <desc>
3719 Additional property parameters, passed as a comma-separated list of
3720 "name=value" type entries.
3721 </desc>
3722 </param>
3723 </method>
3724
3725 <method name="setGuestPropertyValue">
3726 <desc>
3727 Sets, changes or deletes a value in the machine's guest property
3728 store. The flags field will be left unchanged or created empty for a
3729 new property.
3730 </desc>
3731 <param name="property" type="wstring" dir="in">
3732 <desc>
3733 The name of the property to set, change or delete.
3734 </desc>
3735 </param>
3736 <param name="value" type="wstring" dir="in">
3737 <desc>
3738 The new value of the property to set, change or delete. If the
3739 property does not yet exist and value is non-empty, it will be
3740 created. If value is empty, the property will be deleted if it
3741 exists.
3742 </desc>
3743 </param>
3744 </method>
3745
3746 <method name="enumerateGuestProperties">
3747 <desc>
3748 Return a list of the guest properties matching a set of patterns along
3749 with their values, timestamps and flags.
3750 </desc>
3751 <param name="patterns" type="wstring" dir="in">
3752 <desc>
3753 The patterns to match the properties against as a comma-separated
3754 string with no spaces. If this is empty, all properties currently
3755 set will be returned.
3756 </desc>
3757 </param>
3758 <param name="name" type="wstring" dir="out" safearray="yes">
3759 <desc>
3760 The names of the properties returned.
3761 </desc>
3762 </param>
3763 <param name="value" type="wstring" dir="out" safearray="yes">
3764 <desc>
3765 The values of the properties returned. The array entries match the
3766 corresponding entries in the @a name array.
3767 </desc>
3768 </param>
3769 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
3770 <desc>
3771 The timestamps of the properties returned. The array entries match
3772 the corresponding entries in the @a name array.
3773 </desc>
3774 </param>
3775 <param name="flags" type="wstring" dir="out" safearray="yes">
3776 <desc>
3777 The flags of the properties returned. The array entries match the
3778 corresponding entries in the @a name array.
3779 </desc>
3780 </param>
3781 </method>
3782 </interface>
3783
3784 <!--
3785 // IConsole
3786 /////////////////////////////////////////////////////////////////////////
3787 -->
3788
3789 <interface
3790 name="IConsoleCallback" extends="$unknown"
3791 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
3792 wsmap="suppress"
3793 >
3794
3795 <method name="onMousePointerShapeChange">
3796 <desc>
3797 Notification when the guest mouse pointer shape has
3798 changed. The new shape data is given.
3799 </desc>
3800 <param name="visible" type="boolean" dir="in">
3801 <desc>
3802 Flag whether the pointer is visible.
3803 </desc>
3804 </param>
3805 <param name="alpha" type="boolean" dir="in">
3806 <desc>
3807 Flag whether the pointer has an alpha channel.
3808 </desc>
3809 </param>
3810 <param name="xHot" type="unsigned long" dir="in">
3811 <desc>
3812 The pointer hot spot x coordinate.
3813 </desc>
3814 </param>
3815 <param name="yHot" type="unsigned long" dir="in">
3816 <desc>
3817 The pointer hot spot y coordinate.
3818 </desc>
3819 </param>
3820 <param name="width" type="unsigned long" dir="in">
3821 <desc>
3822 Width of the pointer shape in pixels.
3823 </desc>
3824 </param>
3825 <param name="height" type="unsigned long" dir="in">
3826 <desc>
3827 Height of the pointer shape in pixels.
3828 </desc>
3829 </param>
3830 <param name="shape" type="octet" mod="ptr" dir="in">
3831 <desc>
3832 Address of the shape buffer.
3833
3834 The buffer contains 1 bpp (bits per pixel) AND mask followed by 32 bpp XOR (color) mask.
3835
3836 For pointers without alpha channel the XOR mask pixels are 32 bit values: (lsb)BGR0(msb).
3837 For pointers with alpha channel the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
3838
3839 AND mask presents for pointers with alpha channel, so if the callback does not
3840 support alpha, the pointer could be displayed as a normal color pointer.
3841
3842 The AND mask is 1 bpp bitmap with byte aligned scanlines. Size of AND mask,
3843 therefore, is <tt>cbAnd = (width + 7) / 8 * height</tt>. The padding bits at the
3844 end of any scanline are undefined.
3845
3846 The XOR mask follows the AND mask on the next 4 bytes aligned offset:
3847 <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>
3848 Bytes in the gap between the AND and the XOR mask are undefined.
3849 XOR mask scanlines have no gap between them and size of XOR mask is:
3850 <tt>cXor = width * 4 * height</tt>.
3851
3852 <note>
3853 If 'shape' is equal to 0, only pointer visibility is being changed.
3854 </note>
3855 </desc>
3856 </param>
3857 </method>
3858
3859 <method name="onMouseCapabilityChange">
3860 <desc>
3861 Notification when the mouse capabilities reported by the
3862 guest have changed. The new capabilities are passed.
3863 </desc>
3864 <param name="supportsAbsolute" type="boolean" dir="in"/>
3865 <param name="needsHostCursor" type="boolean" dir="in"/>
3866 </method>
3867
3868 <method name="onKeyboardLedsChange">
3869 <desc>
3870 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
3871 to alter the state of the keyboard LEDs.
3872 </desc>
3873 <param name="numLock" type="boolean" dir="in"/>
3874 <param name="capsLock" type="boolean" dir="in"/>
3875 <param name="scrollLock" type="boolean" dir="in"/>
3876 </method>
3877
3878 <method name="onStateChange">
3879 <desc>
3880 Notification when the execution state of the machine has changed.
3881 The new state will be given.
3882 </desc>
3883 <param name="state" type="MachineState" dir="in"/>
3884 </method>
3885
3886 <method name="onAdditionsStateChange">
3887 <desc>
3888 Notification when a Guest Additions property changes.
3889 Interested callees should query IGuest attributes to
3890 find out what has changed.
3891 </desc>
3892 </method>
3893
3894 <method name="onDVDDriveChange">
3895 <desc>
3896 Notification when a property of the
3897 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
3898 Interested callees should use IDVDDrive methods to find out what has
3899 changed.
3900 </desc>
3901 </method>
3902
3903 <method name="onFloppyDriveChange">
3904 <desc>
3905 Notification when a property of the
3906 virtual <link to="IMachine::FloppyDrive">floppy drive</link> changes.
3907 Interested callees should use IFloppyDrive methods to find out what
3908 has changed.
3909 </desc>
3910 </method>
3911
3912 <method name="onNetworkAdapterChange">
3913 <desc>
3914 Notification when a property of one of the
3915 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
3916 changes. Interested callees should use INetworkAdapter methods and
3917 attributes to find out what has changed.
3918 </desc>
3919 <param name="networkAdapter" type="INetworkAdapter" dir="in">
3920 <desc>Network adapter that is subject to change.</desc>
3921 </param>
3922 </method>
3923
3924 <method name="onSerialPortChange">
3925 <desc>
3926 Notification when a property of one of the
3927 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
3928 Interested callees should use ISerialPort methods and attributes
3929 to find out what has changed.
3930 </desc>
3931 <param name="serialPort" type="ISerialPort" dir="in">
3932 <desc>Serial port that is subject to change.</desc>
3933 </param>
3934 </method>
3935
3936 <method name="onParallelPortChange">
3937 <desc>
3938 Notification when a property of one of the
3939 virtual <link to="IMachine::getParallelPort">parallel ports</link>
3940 changes. Interested callees should use ISerialPort methods and
3941 attributes to find out what has changed.
3942 </desc>
3943 <param name="parallelPort" type="IParallelPort" dir="in">
3944 <desc>Parallel port that is subject to change.</desc>
3945 </param>
3946 </method>
3947
3948 <method name="onVRDPServerChange">
3949 <desc>
3950 Notification when a property of the
3951 <link to="IMachine::VRDPServer">VRDP server</link> changes.
3952 Interested callees should use IVRDPServer methods and attributes to
3953 find out what has changed.
3954 </desc>
3955 </method>
3956
3957 <method name="onUSBControllerChange">
3958 <desc>
3959 Notification when a property of the virtual
3960 <link to="IMachine::USBController">USB controller</link> changes.
3961 Interested callees should use IUSBController methods and attributes to
3962 find out what has changed.
3963 </desc>
3964 </method>
3965
3966 <method name="onUSBDeviceStateChange">
3967 <desc>
3968 Notification when a USB device is attached to or detached from
3969 the virtual USB controller.
3970
3971 This notification is sent as a result of the indirect
3972 request to attach the device because it matches one of the
3973 machine USB filters, or as a result of the direct request
3974 issued by <link to="IConsole::attachUSBDevice"/> or
3975 <link to="IConsole::detachUSBDevice"/>.
3976
3977 This notification is sent in case of both a succeeded and a
3978 failed request completion. When the request succeeds, the @a
3979 error parameter is @c null, and the given device has been
3980 already added to (when @a attached is @c true) or removed from
3981 (when @a attached is @c false) the collection represented by
3982 <link to="IConsole::USBDevices"/>. On failure, the collection
3983 doesn't change and the @a error perameter represents the error
3984 message describing the failure.
3985
3986 </desc>
3987 <param name="device" type="IUSBDevice" dir="in">
3988 <desc>Device that is subject to state change.</desc>
3989 </param>
3990 <param name="attached" type="boolean" dir="in">
3991 <desc>
3992 <tt>true</tt> if the device was attached
3993 and <tt>false</tt> otherwise.
3994 </desc>
3995 </param>
3996 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
3997 <desc>
3998 <tt>null</tt> on success or an error message object on
3999 failure.
4000 </desc>
4001 </param>
4002 </method>
4003
4004 <method name="onSharedFolderChange">
4005 <desc>
4006 Notification when a shared folder is added or removed.
4007 The @a scope argument defines one of three scopes:
4008 <link to="IVirtualBox::sharedFolders">global shared folders</link>
4009 (<link to="Scope::Global">Global</link>),
4010 <link to="IMachine::sharedFolders">permanent shared folders</link> of
4011 the machine (<link to="Scope::Machine">Machine</link>) or <link
4012 to="IConsole::sharedFolders">transient shared folders</link> of the
4013 machine (<link to="Scope::Session">Session</link>). Interested callees
4014 should use query the corresponding collections to find out what has
4015 changed.
4016 </desc>
4017 <param name="scope" type="Scope" dir="in">
4018 <desc>Sope of the notification.</desc>
4019 </param>
4020 </method>
4021
4022 <method name="onRuntimeError">
4023 <desc>
4024 Notification when an error happens during the virtual
4025 machine execution.
4026
4027 There are three kinds of runtime errors:
4028 <ul>
4029 <li><i>fatal</i></li>
4030 <li><i>non-fatal with retry</i></li>
4031 <li><i>non-fatal warnings</i></li>
4032 </ul>
4033
4034 <b>Fatal</b> errors are indicated by the @a fatal parameter set
4035 to <tt>true</tt>. In case of fatal errors, the virtual machine
4036 execution is always paused before calling this notification, and
4037 the notification handler is supposed either to immediately save
4038 the virtual machine state using <link to="IConsole::saveState()"/>
4039 or power it off using <link to="IConsole::powerDown()"/>.
4040 Resuming the execution can lead to unpredictable results.
4041
4042 <b>Non-fatal</b> errors and warnings are indicated by the
4043 @a fatal parameter set to <tt>false</tt>. If the virtual machine
4044 is in the Paused state by the time the error notification is
4045 received, it means that the user can <i>try to resume</i> the machine
4046 execution after attempting to solve the probem that caused the
4047 error. In this case, the notification handler is supposed
4048 to show an appropriate message to the user (depending on the
4049 value of the @a id parameter) that offers several actions such
4050 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
4051 wants to retry, the notification handler should continue
4052 the machine execution using the <link to="IConsole::resume()"/>
4053 call. If the machine execution is not Paused during this
4054 notification, then it means this notification is a <i>warning</i>
4055 (for example, about a fatal condition that can happen very soon);
4056 no immediate action is required from the user, the machine
4057 continues its normal execution.
4058
4059 Note that in either case the notification handler
4060 <b>must not</b> perform any action directly on a thread
4061 where this notification is called. Everything it is allowed to
4062 do is to post a message to another thread that will then talk
4063 to the user and take the corresponding action.
4064
4065 Currently, the following error identificators are known:
4066 <ul>
4067 <li><tt>"HostMemoryLow"</tt></li>
4068 <li><tt>"HostAudioNotResponding"</tt></li>
4069 <li><tt>"VDIStorageFull"</tt></li>
4070 </ul>
4071
4072 <note>
4073 This notification is not designed to be implemented by
4074 more than one callback at a time. If you have multiple
4075 IConsoleCallback instances registered on the given
4076 IConsole object, make sure you simply do nothing but
4077 return @c S_OK from all but one of them that does actual
4078 user notification and performs necessary actions.
4079 </note>
4080
4081 </desc>
4082 <param name="fatal" type="boolean" dir="in">
4083 <desc>Whether the error is fatal or not</desc>
4084 </param>
4085 <param name="id" type="wstring" dir="in">
4086 <desc>Error identificator</desc>
4087 </param>
4088 <param name="message" type="wstring" dir="in">
4089 <desc>Optional error message</desc>
4090 </param>
4091 </method>
4092
4093 <method name="onCanShowWindow">
4094 <desc>
4095 Notification when a call to
4096 <link to="IMachine::canShowConsoleWindow()"/> is made by a
4097 front-end to check if a subsequent call to
4098 <link to="IMachine::showConsoleWindow()"/> can succeed.
4099
4100 The callee should give an answer appropriate to the current
4101 machine state in the @a canShow argument. This answer must
4102 remain valid at least until the next
4103 <link to="IConsole::state">machine state</link> change.
4104
4105 <note>
4106 This notification is not designed to be implemented by
4107 more than one callback at a time. If you have multiple
4108 IConsoleCallback instances registered on the given
4109 IConsole object, make sure you simply do nothing but
4110 return @c true and @c S_OK from all but one of them that
4111 actually manages console window activation.
4112 </note>
4113 </desc>
4114 <param name="canShow" type="boolean" dir="return">
4115 <desc>
4116 @c true if the console window can be shown and @c
4117 false otherwise.
4118 </desc>
4119 </param>
4120 </method>
4121
4122 <method name="onShowWindow">
4123 <desc>
4124 Notification when a call to
4125 <link to="IMachine::showConsoleWindow()"/>
4126 requests the console window to be activated and brought to
4127 foreground on the desktop of the host PC.
4128
4129 This notification should cause the VM console process to
4130 perform the requested action as described above. If it is
4131 impossible to do it at a time of this notification, this
4132 method should return a failure.
4133
4134 Note that many modern window managers on many platforms
4135 implement some sort of focus stealing prevention logic, so
4136 that it may be impossible to activate a window without the
4137 help of the currently active application (which is supposedly
4138 an initiator of this notification). In this case, this method
4139 must return a non-zero identifier that represents the
4140 top-level window of the VM console process. The caller, if it
4141 represents a currently active process, is responsible to use
4142 this identifier (in a platform-dependent manner) to perform
4143 actual window activation.
4144
4145 This method must set @a winId to zero if it has performed all
4146 actions necessary to complete the request and the console
4147 window is now active and in foreground, to indicate that no
4148 further action is required on the caller's side.
4149
4150 <note>
4151 This notification is not designed to be implemented by
4152 more than one callback at a time. If you have multiple
4153 IConsoleCallback instances registered on the given
4154 IConsole object, make sure you simply do nothing but
4155 return@c S_OK from all but one of them that actually
4156 manages console window activation.
4157 </note>
4158 </desc>
4159 <param name="winId" type="unsigned long long" dir="return">
4160 <desc>
4161 Platform-dependent identifier of the top-level VM console
4162 window, or zero if this method has performed all actions
4163 necessary to implement the <i>show window</i> semantics for
4164 the given platform and/or this VirtualBox front-end.
4165 </desc>
4166 </param>
4167 </method>
4168
4169 </interface>
4170
4171 <interface
4172 name="IRemoteDisplayInfo" extends="$unknown"
4173 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
4174 wsmap="struct"
4175 >
4176 <desc>
4177 Contains information about the remote display (VRDP) capabilities and status.
4178 This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
4179 </desc>
4180
4181 <attribute name="active" type="boolean" readonly="yes">
4182 <desc>
4183 Whether the remote display connection is active.
4184 </desc>
4185 </attribute>
4186
4187 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
4188 <desc>
4189 How many times a client connected.
4190 </desc>
4191 </attribute>
4192
4193 <attribute name="beginTime" type="long long" readonly="yes">
4194 <desc>
4195 When the last connection was established, in milliseconds since 1970-01-01 UTC.
4196 </desc>
4197 </attribute>
4198
4199 <attribute name="endTime" type="long long" readonly="yes">
4200 <desc>
4201 When the last connection was terminated or the current time, if
4202 connection is still active, in milliseconds since 1970-01-01 UTC.
4203 </desc>
4204 </attribute>
4205
4206 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
4207 <desc>
4208 How many bytes were sent in last or current, if still active, connection.
4209 </desc>
4210 </attribute>
4211
4212 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
4213 <desc>
4214 How many bytes were sent in all connections.
4215 </desc>
4216 </attribute>
4217
4218 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
4219 <desc>
4220 How many bytes were received in last or current, if still active, connection.
4221 </desc>
4222 </attribute>
4223
4224 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
4225 <desc>
4226 How many bytes were received in all connections.
4227 </desc>
4228 </attribute>
4229
4230 <attribute name="user" type="wstring" readonly="yes">
4231 <desc>
4232 Login user name supplied by the client.
4233 </desc>
4234 </attribute>
4235
4236 <attribute name="domain" type="wstring" readonly="yes">
4237 <desc>
4238 Login domain name supplied by the client.
4239 </desc>
4240 </attribute>
4241
4242 <attribute name="clientName" type="wstring" readonly="yes">
4243 <desc>
4244 The client name supplied by the client.
4245 </desc>
4246 </attribute>
4247
4248 <attribute name="clientIP" type="wstring" readonly="yes">
4249 <desc>
4250 The IP address of the client.
4251 </desc>
4252 </attribute>
4253
4254 <attribute name="clientVersion" type="unsigned long" readonly="yes">
4255 <desc>
4256 The client software version number.
4257 </desc>
4258 </attribute>
4259
4260 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
4261 <desc>
4262 Public key exchange method used when connection was established.
4263 Values: 0 - RDP4 public key exchange scheme.
4264 1 - X509 sertificates were sent to client.
4265 </desc>
4266 </attribute>
4267
4268 </interface>
4269
4270 <interface
4271 name="IConsole" extends="$unknown"
4272 uuid="3acbd337-925f-497d-a624-465c8a99ae5a"
4273 wsmap="managed"
4274 >
4275 <desc>
4276 The IConsole interface represents an interface to control virtual
4277 machine execution.
4278
4279 The console object that implements the IConsole interface is obtained
4280 from a session object after the session for the given machine has been
4281 opened using one of <link to="IVirtualBox::openSession"/>,
4282 <link to="IVirtualBox::openRemoteSession"/> or
4283 <link to="IVirtualBox::openExistingSession"/> methods.
4284
4285 Methods of the IConsole interface allow the caller to query the current
4286 virtual machine execution state, pause the machine or power it down, save
4287 the machine state or take a snapshot, attach and detach removable media
4288 and so on.
4289
4290 <see>ISession</see>
4291 </desc>
4292
4293 <attribute name="machine" type="IMachine" readonly="yes">
4294 <desc>
4295 Machine object this console is sessioned with.
4296 <note>
4297 This is a convenience property, it has the same value as
4298 <link to="ISession::machine"/> of the corresponding session
4299 object.
4300 </note>
4301 </desc>
4302 </attribute>
4303
4304 <attribute name="state" type="MachineState" readonly="yes">
4305 <desc>
4306 Current execution state of the machine.
4307 <note>
4308 This property always returns the same value as the corresponding
4309 property of the IMachine object this console is sessioned with.
4310 For the process that owns (executes) the VM, this is the
4311 preferable way of querying the VM state, because no IPC
4312 calls are made.
4313 </note>
4314 </desc>
4315 </attribute>
4316
4317 <attribute name="guest" type="IGuest" readonly="yes">
4318 <desc>Guest object.</desc>
4319 </attribute>
4320
4321 <attribute name="keyboard" type="IKeyboard" readonly="yes">
4322 <desc>
4323 Virtual keyboard object.
4324 <note>
4325 If the machine is not running, any attempt to use
4326 the returned object will result in an error.
4327 </note>
4328 </desc>
4329 </attribute>
4330
4331 <attribute name="mouse" type="IMouse" readonly="yes">
4332 <desc>
4333 Virtual mouse object.
4334 <note>
4335 If the machine is not running, any attempt to use
4336 the returned object will result in an error.
4337 </note>
4338 </desc>
4339 </attribute>
4340
4341 <attribute name="display" type="IDisplay" readonly="yes">
4342 <desc>Virtual display object.
4343 <note>
4344 If the machine is not running, any attempt to use
4345 the returned object will result in an error.
4346 </note>
4347 </desc>
4348 </attribute>
4349
4350 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
4351 <desc>Debugging interface.</desc>
4352 </attribute>
4353
4354 <attribute name="USBDevices" type="IUSBDeviceCollection" readonly="yes">
4355 <desc>
4356 Collection of USB devices currently attached to the virtual
4357 USB controller.
4358 <note>
4359 The collection is empty if the machine is not running.
4360 </note>
4361 </desc>
4362 </attribute>
4363
4364 <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
4365 <desc>
4366 List of USB devices currently attached to the remote VRDP client.
4367 Once a new device is physically attached to the remote host computer,
4368 it appears in this list and remains there until detached.
4369 </desc>
4370 </attribute>
4371
4372 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
4373 <desc>
4374 Collection of shared folders for the current session. These folders
4375 are called transient shared folders because they are available to the
4376 guest OS running inside the associated virtual machine only for the
4377 duration of the session (as opposed to
4378 <link to="IMachine::sharedFolders"/> which represent permanent shared
4379 folders). When the session is closed (e.g. the machine is powered down),
4380 these folders are automatically discarded.
4381
4382 New shared folders are added to the collection using
4383 <link to="#createSharedFolder"/>. Existing shared folders can be
4384 removed using <link to="#removeSharedFolder"/>.
4385 </desc>
4386 </attribute>
4387
4388 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
4389 <desc>
4390 Interface that provides information on Remote Display (VRDP) connection.
4391 </desc>
4392 </attribute>
4393
4394 <method name="powerUp">
4395 <desc>
4396 Starts the virtual machine execution using the current machine
4397 state (i.e. its current execution state, current settings and
4398 current hard disks).
4399
4400 If the machine is powered off or aborted, the execution will
4401 start from the beginning (as if the real hardware were just
4402 powered on).
4403
4404 If the machine is in the <link to="MachineState::Saved"/> state,
4405 it will continue its execution the point where the state has
4406 been saved.
4407
4408 <note>
4409 Unless you are trying to write a new VirtualBox front-end that
4410 performs direct machine execution (like the VirtualBox or VBoxSDL
4411 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
4412 session opened by <link to="IVirtualBox::openSession"/> and use this
4413 session only to change virtual machine settings. If you simply want to
4414 start virtual machine execution using one of the existing front-ends
4415 (for example the VirtualBox GUI or headless server), simply use
4416 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
4417 will power up the machine automatically for you.
4418 </note>
4419
4420 <see>#saveState</see>
4421 </desc>
4422 <param name="progress" type="IProgress" dir="return">
4423 <desc>Progress object to track the operation completion.</desc>
4424 </param>
4425 </method>
4426
4427 <method name="powerUpPaused">
4428 <desc>
4429 Identical to powerUp save that the VM will enter the
4430 <link to="MachineState::Paused"/> state, instead of
4431 <link to="MachineState::Running"/>.
4432
4433 <see>#powerUp</see>
4434 </desc>
4435 <param name="progress" type="IProgress" dir="return">
4436 <desc>Progress object to track the operation completion.</desc>
4437 </param>
4438 </method>
4439
4440 <method name="powerDown">
4441 <desc>
4442 Stops the virtual machine execution.
4443 After this operation completes, the machine will go to the
4444 PoweredOff state.
4445 </desc>
4446 </method>
4447
4448 <method name="reset">
4449 <desc>Resets the virtual machine.</desc>
4450 </method>
4451
4452 <method name="pause">
4453 <desc>Pauses the virtual machine execution.</desc>
4454 </method>
4455
4456 <method name="resume">
4457 <desc>Resumes the virtual machine execution.</desc>
4458 </method>
4459
4460 <method name="powerButton">
4461 <desc>Send the ACPI power button event to the guest.</desc>
4462 </method>
4463
4464 <method name="sleepButton">
4465 <desc>Send the ACPI sleep button event to the guest.</desc>
4466 </method>
4467
4468 <method name="getPowerButtonHandled">
4469 <desc>Check if the last power button event was handled by guest.</desc>
4470 <param name="handled" type="boolean" dir="return"/>
4471 </method>
4472
4473 <method name="getGuestEnteredACPIMode">
4474 <desc>Check if the guest entered the ACPI mode G0 (working) or
4475 G1 (sleeping). If this method returns false, the guest will
4476 most likely not respond to external ACPI events.</desc>
4477 <param name="entered" type="boolean" dir="return"/>
4478 </method>
4479
4480 <method name="saveState">
4481 <desc>
4482 Saves the current execution state of a running virtual machine
4483 and stops its execution.
4484
4485 After this operation completes, the machine will go to the
4486 Saved state. Next time it is powered up, this state will
4487 be restored and the machine will continue its execution from
4488 the place where it was saved.
4489
4490 This operation differs from taking a snapshot to the effect
4491 that it doesn't create new differencing hard disks. Also, once
4492 the machine is powered up from the state saved using this method,
4493 the saved state is deleted, so it will be impossible to return
4494 to this state later.
4495
4496 <note>
4497 On success, this method implicitly calls
4498 <link to="IMachine::saveSettings()"/> to save all current machine
4499 settings (including runtime changes to the DVD drive, etc.).
4500 Together with the impossibility to change any VM settings when it is
4501 in the Saved state, this guarantees the adequate hardware
4502 configuration of the machine when it is restored from the saved
4503 state file.
4504 </note>
4505
4506 <note>
4507 The machine must be in the Running or Paused state, otherwise
4508 the operation will fail.
4509 </note>
4510
4511 <see><link to="#takeSnapshot"/></see>
4512 </desc>
4513 <param name="progress" type="IProgress" dir="return">
4514 <desc>Progress object to track the operation completion.</desc>
4515 </param>
4516 </method>
4517
4518 <method name="adoptSavedState">
4519 <desc>
4520 Associates the given saved state file to the virtual machine.
4521
4522 On success, the machine will go to the Saved state. Next time it is
4523 powered up, it will be restored from the adopted saved state and
4524 continue execution from the place where the saved state file was
4525 created.
4526
4527 The specified saved state file path may be full or relative to the
4528 folder the VM normally saves the state to (usually,
4529 <link to="IMachine::snapshotFolder"/>).
4530
4531 <note>
4532 It's a caller's responsibility to make sure the given saved state
4533 file is compatible with the settings of this virtual machine that
4534 represent its virtual hardware (memory size, hard disk configuration
4535 etc.). If there is a mismatch, the behavior of the virtual machine
4536 is undefined.
4537 </note>
4538 </desc>
4539 <param name="savedStateFile" type="wstring" dir="in">
4540 <desc>Path to the saved state file to adopt.</desc>
4541 </param>
4542 </method>
4543
4544 <method name="discardSavedState">
4545 <desc>
4546 Discards (deletes) the saved state of the virtual machine
4547 previously created by <link to="#saveState"/>. Next time the
4548 machine is powered up, a clean boot will occur.
4549 <note>
4550 This operation is equivalent to resetting or powering off
4551 the machine without doing a proper shutdown in the guest OS.
4552 </note>
4553 </desc>
4554 </method>
4555
4556 <method name="getDeviceActivity">
4557 <desc>
4558 Gets the current activity type of a given device or device group.
4559 </desc>
4560 <param name="type" type="DeviceType" dir="in"/>
4561 <param name="activity" type="DeviceActivity" dir="return"/>
4562 </method>
4563
4564 <method name="attachUSBDevice">
4565 <desc>
4566 Attaches a host USB device with the given UUID to the
4567 USB controller of the virtual machine.
4568
4569 The device needs to be in one of the following states:
4570 <link to="USBDeviceState::Busy">Busy</link>,
4571 <link to="USBDeviceState::Available">Available</link> or
4572 <link to="USBDeviceState::Held">Held</link>,
4573 otherwise an error is immediately returned.
4574
4575 When the device state is
4576 <link to="USBDeviceState::Busy">Busy</link>, an error may also
4577 be returned if the host computer refuses to release it for some reason.
4578
4579 <see>IUSBController::deviceFilters, USBDeviceState</see>
4580 </desc>
4581 <param name="id" type="uuid" dir="in">
4582 <desc>UUID of the host USB device to attach.</desc>
4583 </param>
4584 </method>
4585
4586 <method name="detachUSBDevice">
4587 <desc>
4588 Detaches an USB device with the given UUID from the USB controller
4589 oif the virtual machine.
4590
4591 After this method succeeds, the VirtualBox server reinitiates
4592 all USB filters as if the device were just physically attached
4593 to the host, but filters of this machine are ignored to avoid
4594 a possible automatic reattachment.
4595
4596 <see>IUSBController::deviceFilters, USBDeviceState</see>
4597 </desc>
4598 <param name="id" type="uuid" dir="in">
4599 <desc>UUID of the USB device to detach.</desc>
4600 </param>
4601 <param name="device" type="IUSBDevice" dir="return">
4602 <desc>Detached USB device.</desc>
4603 </param>
4604 </method>
4605
4606 <method name="createSharedFolder">
4607 <desc>
4608 Creates a transient new shared folder by associating the given logical
4609 name with the given host path, adds it to the collection of shared
4610 folders and starts sharing it. Refer to the description of
4611 <link to="ISharedFolder"/> to read more about logical names.
4612 </desc>
4613 <param name="name" type="wstring" dir="in">
4614 <desc>Unique logical name of the shared folder.</desc>
4615 </param>
4616 <param name="hostPath" type="wstring" dir="in">
4617 <desc>Full path to the shared folder in the host file system.</desc>
4618 </param>
4619 <param name="writable" type="boolean" dir="in">
4620 <desc>Whether the share is writable or readonly</desc>
4621 </param>
4622 </method>
4623
4624 <method name="removeSharedFolder">
4625 <desc>
4626 Removes a transient shared folder with the given name previously
4627 created by <link to="#createSharedFolder"/> from the collection of
4628 shared folders and stops sharing it.
4629 </desc>
4630 <param name="name" type="wstring" dir="in">
4631 <desc>Logical name of the shared folder to remove.</desc>
4632 </param>
4633 </method>
4634
4635 <method name="takeSnapshot">
4636 <desc>
4637 Saves the current execution state and all settings of the
4638 machine and creates differencing images for all
4639 normal (non-independent) hard disks.
4640
4641 This method can be called for a PoweredOff, Saved, Running or
4642 Paused virtual machine. When the machine is PoweredOff, an
4643 offline <link to="ISnapshot">snapshot</link> is created,
4644 in all other cases -- an online snapshot.
4645
4646 The taken snapshot is always based on the
4647 <link to="IMachine::currentSnapshot">current
4648 snapshot</link> of the associated virtual machine and becomes
4649 a new current snapshot.
4650
4651 <note>
4652 This method implicitly calls <link to="IMachine::saveSettings()"/> to
4653 save all current machine settings before taking an offline snapshot.
4654 </note>
4655
4656 <see>ISnapshot, <link to="#saveState"/></see>
4657 </desc>
4658 <param name="name" type="wstring" dir="in">
4659 <desc>Short name for the snapshot.</desc>
4660 </param>
4661 <param name="description" type="wstring" dir="in">
4662 <desc>Optional description of the snapshot.</desc>
4663 </param>
4664 <param name="progress" type="IProgress" dir="return">
4665 <desc>Progress object to track the operation completion.</desc>
4666 </param>
4667 </method>
4668
4669 <method name="discardSnapshot">
4670 <desc>
4671
4672 Starts discarding the specified snapshot. The execution state
4673 and settings of the associated machine stored in the snapshot
4674 will be deleted. The contents of all differencing hard disks of
4675 this snapshot will be merged with the contents of their
4676 dependent child hard disks to keep the, disks valid (in other
4677 words, all changes represented by hard disks being discarded
4678 will be propagated to their child hard disks). After that, this
4679 snapshot's differencing hard disks will be deleted. The parent
4680 of this snapshot will become a new parent for all its child
4681 snapshots.
4682
4683 If the discarded snapshot is the current one, its parent
4684 snapshot will become a new current snapshot. The current machine
4685 state is not directly affected in this case, except that
4686 currently attached differencing hard disks based on hard disks
4687 of the discarded snapshot will be also merged as described
4688 above.
4689
4690 If the discarded snapshot is the first one (the root snapshot)
4691 and it has exactly one child snapshot, this child snapshot will
4692 become the first snapshot after discarding. If there are no
4693 children at all (i.e. the first snapshot is the only snapshot of
4694 the machine), both the current and the first snapshot of the
4695 machine will be set to null. In all other cases, the first
4696 snapshot cannot be discarded.
4697
4698 You cannot discard the snapshot if it
4699 stores <link to="HardDiskType::Normal">normal</link> (non-differencing)
4700 hard disks that have differencing hard disks based on them. Snapshots of
4701 such kind can be discarded only when every normal hard disk has either
4702 no children at all or exactly one child. In the former case, the normal
4703 hard disk simply becomes unused (i.e. not attached to any VM). In the
4704 latter case, it receives all the changes strored in the child hard disk,
4705 and then it replaces the child hard disk in the configuration of the
4706 corresponding snapshot or machine.
4707
4708 Also, you cannot discard the snapshot if it stores hard disks
4709 (of any type) having differencing child hard disks that belong
4710 to other machines. Such snapshots can be only discarded after
4711 you discard all snapshots of other machines containing "foreign"
4712 child disks, or detach these "foreign" child disks from machines
4713 they are attached to.
4714
4715 One particular example of the snapshot storing normal hard disks
4716 is the first snapshot of a virtual machine that had normal hard
4717 disks attached when taking the snapshot. Be careful when
4718 discarding such snapshots because this implicitly commits
4719 changes (made since the snapshot being discarded has been taken)
4720 to normal hard disks (as described above), which may be not what
4721 you want.
4722
4723 The virtual machine is put to
4724 the <link to="MachineState::Discarding">Discarding</link> state until
4725 the discard operation is completed.
4726
4727 <note>
4728 The machine must not be running, otherwise the operation
4729 will fail.
4730 </note>
4731
4732 <note>
4733 Child hard disks of all normal hard disks of the discarded snapshot
4734 must be <link to="IHardDisk::accessible">accessible</link> for this
4735 operation to succeed. In particular, this means that all virtual
4736 machines, whose hard disks are directly or indirectly based on the
4737 hard disks of discarded snapshot, must be powered off.
4738 </note>
4739 <note>
4740 Merging hard disk contents can be very time and disk space
4741 consuming, if these disks are big in size and have many
4742 children. However, if the snapshot being discarded is the last
4743 (head) snapshot on the branch, the operation will be rather
4744 quick.
4745 </note>
4746 <note>
4747 Note that discarding the current snapshot
4748 will imlicitly call <link to="IMachine::saveSettings()"/> to
4749 make all current machine settings permanent.
4750 </note>
4751 </desc>
4752 <param name="id" type="uuid" dir="in">
4753 <desc>UUID of the snapshot to discard.</desc>
4754 </param>
4755 <param name="progress" type="IProgress" dir="return">
4756 <desc>Progress object to track the operation completion.</desc>
4757 </param>
4758 </method>
4759
4760 <method name="discardCurrentState">
4761 <desc>
4762 This operation is similar to <link to="#discardSnapshot()"/> but
4763 affects the current machine state. This means that the state stored in
4764 the current snapshot will become a new current state, and all current
4765 settings of the machine and changes stored in differencing hard disks
4766 will be lost.
4767
4768 After this operation is successfully completed, new empty differencing
4769 hard disks are created for all normal hard disks of the machine.
4770
4771 If the current snapshot of the machine is an online snapshot, the
4772 machine will go to the <link to="MachineState::Saved"> saved
4773 state</link>, so that the next time it is powered on, the execution
4774 state will be restored from the current snapshot.
4775
4776 <note>
4777 The machine must not be running, otherwise the operation will fail.
4778 </note>
4779
4780 <note>
4781 If the machine state is <link to="MachineState::Saved">Saved</link>
4782 prior to this operation, the saved state file will be implicitly
4783 discarded (as if <link to="IConsole::discardSavedState()"/> were
4784 called).
4785 </note>
4786
4787 </desc>
4788 <param name="progress" type="IProgress" dir="return">
4789 <desc>Progress object to track the operation completion.</desc>
4790 </param>
4791 </method>
4792
4793 <method name="discardCurrentSnapshotAndState">
4794 <desc>
4795
4796 This method is equivalent to
4797 doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
4798 (currentSnapshot.id(), progress) followed by
4799 <link to="#discardCurrentState()"/>.
4800
4801 As a result, the machine will be fully restored from the
4802 snapshot preceeding the current snapshot, while both the current
4803 snapshot and the current machine state will be discarded.
4804
4805 If the current snapshot is the first snapshot of the machine (i.e. it
4806 has the only snapshot), the current machine state will be
4807 discarded <b>before</b> discarding the snapshot. In other words, the
4808 machine will be restored from its last snapshot, before discarding
4809 it. This differs from performing a single
4810 <link to="#discardSnapshot()"/> call (note that no
4811 <link to="#discardCurrentState()"/> will be possible after it)
4812 to the effect that the latter will preserve the current state instead of
4813 discarding it.
4814
4815 Unless explicitly mentioned otherwise, all remarks and
4816 limitations of the above two methods also apply to this method.
4817
4818 <note>
4819 The machine must not be running, otherwise the operation
4820 will fail.
4821 </note>
4822
4823 <note>
4824 If the machine state is <link to="MachineState::Saved">Saved</link>
4825 prior to this operation, the saved state file will be implicitly
4826 discarded (as if <link to="#discardSavedState()"/> were
4827 called).
4828 </note>
4829
4830 <note>
4831 This method is more efficient than calling two above
4832 methods separately: it requires less IPC calls and provides
4833 a single progress object.
4834 </note>
4835
4836 </desc>
4837 <param name="progress" type="IProgress" dir="return">
4838 <desc>Progress object to track the operation completion.</desc>
4839 </param>
4840 </method>
4841
4842 <method name="registerCallback">
4843 <desc>
4844 Registers a new console callback on this instance. The methods of the
4845 callback interface will be called by this instance when the appropriate
4846 event occurs.
4847 </desc>
4848 <param name="callback" type="IConsoleCallback" dir="in"/>
4849 </method>
4850
4851 <method name="unregisterCallback">
4852 <desc>
4853 Unregisters the console callback previously registered using
4854 <link to="#registerCallback"/>.
4855 </desc>
4856 <param name="callback" type="IConsoleCallback" dir="in"/>
4857 </method>
4858 </interface>
4859
4860 <!--
4861 // IHost
4862 /////////////////////////////////////////////////////////////////////////
4863 -->
4864
4865 <interface
4866 name="IHostDVDDrive" extends="$unknown"
4867 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
4868 wsmap="managed"
4869 >
4870 <desc>
4871 The IHostDVDDrive interface represents the physical CD/DVD drive
4872 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
4873 </desc>
4874
4875 <attribute name="name" type="wstring" readonly="yes">
4876 <desc>
4877 Returns the platform-specific device identifier.
4878 On DOS-like platforms, it is a drive name (e.g. R:).
4879 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
4880 </desc>
4881 </attribute>
4882 <attribute name="description" type="wstring" readonly="yes">
4883 <desc>
4884 Returns a human readable description for the drive. This
4885 description usually contains the product and vendor name. A
4886 @c null string is returned if the description is not available.
4887 </desc>
4888 </attribute>
4889 <attribute name="udi" type="wstring" readonly="yes">
4890 <desc>
4891 Returns the unique device identifier for the drive. This
4892 attribute is reserved for future use instead of
4893 <link to="#name"/>. Currently it is not used and may return
4894 @c null on some platforms.
4895 </desc>
4896 </attribute>
4897
4898 </interface>
4899
4900 <enumerator
4901 name="IHostDVDDriveEnumerator" type="IHostDVDDrive"
4902 uuid="1ed7cfaf-c363-40df-aa4e-89c1afb7d96b"
4903 />
4904
4905 <collection
4906 name="IHostDVDDriveCollection" type="IHostDVDDrive"
4907 enumerator="IHostDVDDriveEnumerator"
4908 uuid="1909c533-1a1e-445f-a4e1-a267cffc30ed"
4909 readonly="yes"
4910 >
4911 <method name="findByName">
4912 <desc>
4913 Searches this collection for a host drive with the given name.
4914 <note>
4915 The method returns an error if the given name does not
4916 correspond to any host drive in the collection.
4917 </note>
4918 </desc>
4919 <param name="name" type="wstring" dir="in">
4920 <desc>Name of the host drive to search for</desc>
4921 </param>
4922 <param name="drive" type="IHostDVDDrive" dir="return">
4923 <desc>Found host drive object</desc>
4924 </param>
4925 </method>
4926 </collection>
4927
4928 <interface
4929 name="IHostFloppyDrive" extends="$unknown"
4930 uuid="b6a4d1a9-4221-43c3-bd52-021a5daa9ed2"
4931 wsmap="managed"
4932 >
4933 <desc>
4934 The IHostFloppyDrive interface represents the physical floppy drive
4935 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
4936 </desc>
4937 <attribute name="name" type="wstring" readonly="yes">
4938 <desc>
4939 Returns the platform-specific device identifier.
4940 On DOS-like platforms, it is a drive name (e.g. A:).
4941 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
4942 </desc>
4943 </attribute>
4944 <attribute name="description" type="wstring" readonly="yes">
4945 <desc>
4946 Returns a human readable description for the drive. This
4947 description usually contains the product and vendor name. A
4948 @c null string is returned if the description is not available.
4949 </desc>
4950 </attribute>
4951 <attribute name="udi" type="wstring" readonly="yes">
4952 <desc>
4953 Returns the unique device identifier for the drive. This
4954 attribute is reserved for future use instead of
4955 <link to="#name"/>. Currently it is not used and may return
4956 @c null on some platforms.
4957 </desc>
4958 </attribute>
4959 </interface>
4960
4961 <enumerator
4962 name="IHostFloppyDriveEnumerator" type="IHostFloppyDrive"
4963 uuid="ce04c924-4f54-432a-9dec-11fddc3ea875"
4964 />
4965
4966 <collection
4967 name="IHostFloppyDriveCollection" type="IHostFloppyDrive"
4968 enumerator="IHostFloppyDriveEnumerator"
4969 uuid="fd84bb86-c59a-4037-a557-755ff263a460"
4970 readonly="yes"
4971 >
4972 <method name="findByName">
4973 <desc>
4974 Searches this collection for a host drive with the given name.
4975 <note>
4976 The method returns an error if the given name does not
4977 correspond to any host drive in the collection.
4978 </note>
4979 </desc>
4980 <param name="name" type="wstring" dir="in">
4981 <desc>Name of the host drive to search for</desc>
4982 </param>
4983 <param name="drive" type="IHostFloppyDrive" dir="return">
4984 <desc>Found host drive object</desc>
4985 </param>
4986 </method>
4987 </collection>
4988
4989 <interface
4990 name="IHostNetworkInterface" extends="$unknown"
4991 uuid="F4512D7C-B074-4e97-99B8-6D2BD27C3F5A"
4992 wsmap="managed"
4993 >
4994 <attribute name="name" type="wstring" readonly="yes">
4995 <desc>Returns the host network interface name.</desc>
4996 </attribute>
4997
4998 <attribute name="id" type="uuid" readonly="yes">
4999 <desc>Returns the interface UUID.</desc>
5000 </attribute>
5001 </interface>
5002
5003 <enumerator
5004 name="IHostNetworkInterfaceEnumerator" type="IHostNetworkInterface"
5005 uuid="7B52FEF7-56E8-4aec-92F5-15E6D11EC630"
5006 />
5007
5008 <collection
5009 name="IHostNetworkInterfaceCollection" type="IHostNetworkInterface"
5010 enumerator="IHostNetworkInterfaceEnumerator"
5011 uuid="BF1D41F2-B97B-4314-A0FB-D4823AF42FB5"
5012 readonly="yes"
5013 >
5014 <method name="findByName">
5015 <desc>
5016 Searches this collection for a host network interface with the given name.
5017 <note>
5018 The method returns an error if the given name does not
5019 correspond to any host network interface in the collection.
5020 </note>
5021 </desc>
5022 <param name="name" type="wstring" dir="in">
5023 <desc>Name of the host network interface to search for.</desc>
5024 </param>
5025 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
5026 <desc>Found host network interface object.</desc>
5027 </param>
5028 </method>
5029 <method name="findById">
5030 <desc>
5031 Searches this collection for a host network interface with the given GUID.
5032 <note>
5033 The method returns an error if the given GUID does not
5034 correspond to any host network interface in the collection.
5035 </note>
5036 </desc>
5037 <param name="id" type="uuid" dir="in">
5038 <desc>GUID of the host network interface to search for.</desc>
5039 </param>
5040 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
5041 <desc>Found host network interface object.</desc>
5042 </param>
5043 </method>
5044 </collection>
5045
5046 <interface
5047 name="IHost" extends="$unknown"
5048 uuid="489fb370-c227-4d43-9761-ceb28484fd9f"
5049 wsmap="managed"
5050 >
5051 <desc>
5052 The IHost interface represents the physical machine that this VirtualBox
5053 installation runs on.
5054
5055 An object implementing this interface is returned by the
5056 <link to="IVirtualBox::host" /> attribute. This interface contains
5057 read-only information about the host's physical hardware (such as what
5058 processors, and disks are available, what the host operating system is,
5059 and so on) and also allows for manipulating some of the host's hardware,
5060 such as global USB device filters and host interface networking.
5061
5062 </desc>
5063 <attribute name="DVDDrives" type="IHostDVDDriveCollection" readonly="yes">
5064 <desc>List of DVD drives available on the host.</desc>
5065 </attribute>
5066
5067 <attribute name="floppyDrives" type="IHostFloppyDriveCollection" readonly="yes">
5068 <desc>List of floppy drives available on the host.</desc>
5069 </attribute>
5070
5071 <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
5072 <desc>
5073 List of USB devices currently attached to the host.
5074 Once a new device is physically attached to the host computer,
5075 it appears in this list and remains there until detached.
5076
5077 <note>
5078 This method may set a @ref com_warnings "warning result code".
5079 </note>
5080 <note>
5081 If USB functionality is not avaliable in the given edition of
5082 VirtualBox, this method will set the result code to @c E_NOTIMPL.
5083 </note>
5084 </desc>
5085 </attribute>
5086
5087 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilterCollection" readonly="yes">
5088 <desc>
5089 List of USB device filters in action.
5090 When a new device is physically attached to the host computer,
5091 filters from this list are applied to it (in order they are stored
5092 in the list). The first matched filter will determine the
5093 <link to="IHostUSBDeviceFilter::action">action</link>
5094 performed on the device.
5095
5096 Unless the device is ignored by these filters, filters of all
5097 currently running virtual machines
5098 (<link to="IUSBController::deviceFilters"/>) are applied to it.
5099
5100 <note>
5101 This method may set a @ref com_warnings "warning result code".
5102 </note>
5103 <note>
5104 If USB functionality is not avaliable in the given edition of
5105 VirtualBox, this method will set the result code to @c E_NOTIMPL.
5106 </note>
5107
5108 <see>IHostUSBDeviceFilter, USBDeviceState</see>
5109 </desc>
5110 </attribute>
5111
5112 <attribute name="networkInterfaces" type="IHostNetworkInterfaceCollection" readonly="yes">
5113 <desc>List of host network interfaces currently defined on the host.</desc>
5114 </attribute>
5115
5116 <attribute name="processorCount" type="unsigned long" readonly="yes">
5117 <desc>Number of (logical) CPUs installed in the host system.</desc>
5118 </attribute>
5119
5120 <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
5121 <desc>Number of (logical) CPUs online in the host system.</desc>
5122 </attribute>
5123
5124 <method name="getProcessorSpeed">
5125 <desc>Query the (approximate) maximum speed of a specified host CPU in Megahertz.</desc>
5126 <param name="cpuId" type="unsigned long" dir="in">
5127 <desc>
5128 Identifier of the CPU.
5129 </desc>
5130 </param>
5131 <param name="speed" type="unsigned long" dir="return">
5132 <desc>
5133 Speed value. 0 is returned if value is not known or @a cpuId is
5134 invalid.
5135 </desc>
5136 </param>
5137 </method>
5138
5139 <method name="getProcessorDescription">
5140 <desc>Query the model string of a specified host CPU.</desc>
5141 <param name="cpuId" type="unsigned long" dir="in">
5142 <desc>
5143 Identifier of the CPU.
5144 </desc>
5145 </param>
5146 <param name="description" type="wstring" dir="return">
5147 <desc>
5148 Model string. A NULL string is returned if value is not known or
5149 @a cpuId is invalid.
5150 </desc>
5151 </param>
5152 </method>
5153
5154 <attribute name="memorySize" type="unsigned long" readonly="yes">
5155 <desc>Amount of system memory in megabytes installed in the host system.</desc>
5156 </attribute>
5157
5158 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
5159 <desc>Available system memory in the host system.</desc>
5160 </attribute>
5161
5162 <attribute name="operatingSystem" type="wstring" readonly="yes">
5163 <desc>Name of the host system's operating system.</desc>
5164 </attribute>
5165
5166 <attribute name="OSVersion" type="wstring" readonly="yes">
5167 <desc>Host operating system's version string.</desc>
5168 </attribute>
5169
5170 <attribute name="UTCTime" type="long long" readonly="yes">
5171 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
5172 </attribute>
5173
5174<if target="midl">
5175 <method name="createHostNetworkInterface">
5176 <desc>
5177 Creates a new adapter for Host Interface Networking.
5178 </desc>
5179 <param name="name" type="wstring" dir="in">
5180 <desc>
5181 Adapter name.
5182 </desc>
5183 </param>
5184 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
5185 <desc>
5186 Created host interface object.
5187 </desc>
5188 </param>
5189 <param name="progress" type="IProgress" dir="return">
5190 <desc>
5191 Progress object to track the operation completion.
5192 </desc>
5193 </param>
5194 </method>
5195 <method name="removeHostNetworkInterface">
5196 <desc>
5197 Removes the given host network interface.
5198 </desc>
5199 <param name="id" type="uuid" dir="in">
5200 <desc>
5201 Adapter GUID.
5202 </desc>
5203 </param>
5204 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
5205 <desc>
5206 Removed host interface object.
5207 </desc>
5208 </param>
5209 <param name="progress" type="IProgress" dir="return">
5210 <desc>
5211 Progress object to track the operation completion.
5212 </desc>
5213 </param>
5214 </method>
5215</if>
5216
5217 <method name="createUSBDeviceFilter">
5218 <desc>
5219 Creates a new USB device filter. All attributes except
5220 the filter name are set to <tt>null</tt> (any match),
5221 <i>active</i> is <tt>false</tt> (the filter is not active).
5222
5223 The created filter can be added to the list of filters using
5224 <link to="#insertUSBDeviceFilter()"/>.
5225
5226 <see>#USBDeviceFilters</see>
5227 </desc>
5228 <param name="name" type="wstring" dir="in">
5229 <desc>
5230 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
5231 for more info.
5232 </desc>
5233 </param>
5234 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
5235 <desc>Created filter object.</desc>
5236 </param>
5237 </method>
5238
5239 <method name="insertUSBDeviceFilter">
5240 <desc>
5241 Inserts the given USB device to the specified position
5242 in the list of filters.
5243
5244 Positions are numbered starting from <tt>0</tt>. If the specified
5245 position is equal to or greater than the number of elements in
5246 the list, the filter is added to the end of the collection.
5247
5248 <note>
5249 Duplicates are not allowed, so an attempt to insert a
5250 filter that is already in the list, will return an
5251 error.
5252 </note>
5253 <note>
5254 This method may set a @ref com_warnings "warning result code".
5255 </note>
5256 <note>
5257 If USB functionality is not avaliable in the given edition of
5258 VirtualBox, this method will set the result code to @c E_NOTIMPL.
5259 </note>
5260
5261 <see>#USBDeviceFilters</see>
5262 </desc>
5263 <param name="position" type="unsigned long" dir="in">
5264 <desc>Position to insert the filter to.</desc>
5265 </param>
5266 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
5267 <desc>USB device filter to insert.</desc>
5268 </param>
5269 </method>
5270
5271 <method name="removeUSBDeviceFilter">
5272 <desc>
5273 Removes a USB device filter from the specified position in the
5274 list of filters.
5275
5276 Positions are numbered starting from <tt>0</tt>. Specifying a
5277 position equal to or greater than the number of elements in
5278 the list will produce an error.
5279
5280 <note>
5281 This method may set a @ref com_warnings "warning result code".
5282 </note>
5283 <note>
5284 If USB functionality is not avaliable in the given edition of
5285 VirtualBox, this method will set the result code to @c E_NOTIMPL.
5286 </note>
5287
5288 <see>#USBDeviceFilters</see>
5289 </desc>
5290 <param name="position" type="unsigned long" dir="in">
5291 <desc>Position to remove the filter from.</desc>
5292 </param>
5293 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
5294 <desc>Removed USB device filter.</desc>
5295 </param>
5296 </method>
5297
5298 </interface>
5299
5300 <!--
5301 // ISystemProperties
5302 /////////////////////////////////////////////////////////////////////////
5303 -->
5304
5305 <interface
5306 name="ISystemProperties"
5307 extends="$unknown"
5308 uuid="12c2e31e-247f-4d51-82e5-5b9d4a6c7d5b"
5309 wsmap="managed"
5310 >
5311 <desc>
5312 The ISystemProperties interface represents global properties
5313 of the given VirtualBox installation.
5314
5315 These properties define limits and default values for various
5316 attributes and parameters. Most of the properties are read-only, but some can be
5317 changed by a user.
5318 </desc>
5319
5320 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
5321 <desc>Minium guest system memory in Megabytes.</desc>
5322 </attribute>
5323
5324 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
5325 <desc>Maximum guest system memory in Megabytes.</desc>
5326 </attribute>
5327
5328 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
5329 <desc>Minimum guest video memory in Megabytes.</desc>
5330 </attribute>
5331
5332 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
5333 <desc>Maximum guest video memory in Megabytes.</desc>
5334 </attribute>
5335
5336 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
5337 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
5338 </attribute>
5339
5340 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
5341 <desc>
5342 Number of network adapters associated with every
5343 <link to="IMachine"/> instance.
5344 </desc>
5345 </attribute>
5346
5347 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
5348 <desc>
5349 Number of serial ports associated with every
5350 <link to="IMachine"/> instance.
5351 </desc>
5352 </attribute>
5353
5354 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
5355 <desc>
5356 Number of parallel ports associated with every
5357 <link to="IMachine"/> instance.
5358 </desc>
5359 </attribute>
5360
5361 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
5362 <desc>
5363 Maximum device position in the boot order. This value corresponds
5364 to the total number of devices a machine can boot from, to make it
5365 possible to include all possible devices to the boot list.
5366 <see><link to="IMachine::setBootOrder()"/></see>
5367 </desc>
5368 </attribute>
5369
5370 <attribute name="defaultVDIFolder" type="wstring">
5371 <desc>
5372 Full path to the default directory used to create new or open
5373 existing virtual disk images when an image file name contains no
5374 path.
5375
5376 The initial value of this property is
5377 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
5378 VirtualBox_home</link><tt>&gt;/VDI</tt>.
5379
5380 <note>
5381 Setting this property to <tt>null</tt> will restore the
5382 initial value.
5383 </note>
5384 <note>
5385 When settings this property, the specified path can be
5386 absolute (full path) or relative
5387 to the <link to="IVirtualBox::homeFolder">
5388 VirtualBox home directory</link>.
5389 When reading this property, a full path is
5390 always returned.
5391 </note>
5392 <note>
5393 The specified path may not exist, it will be created
5394 when necessary.
5395 </note>
5396
5397 <see>
5398 <link to="IVirtualBox::createHardDisk()"/>,
5399 <link to="IVirtualBox::openVirtualDiskImage()"/>
5400 </see>
5401 </desc>
5402 </attribute>
5403
5404 <attribute name="defaultMachineFolder" type="wstring">
5405 <desc>
5406 Full path to the default directory used to create new or open
5407 existing machines when a settings file name contains no
5408 path.
5409
5410 The initial value of this property is
5411 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
5412 VirtualBox_home</link><tt>&gt;/Machines</tt>.
5413
5414 <note>
5415 Setting this property to <tt>null</tt> will restore the
5416 initial value.
5417 </note>
5418 <note>
5419 When settings this property, the specified path can be
5420 absolute (full path) or relative
5421 to the <link to="IVirtualBox::homeFolder">
5422 VirtualBox home directory</link>.
5423 When reading this property, a full path is
5424 always returned.
5425 </note>
5426 <note>
5427 The specified path may not exist, it will be created
5428 when necessary.
5429 </note>
5430
5431 <see>
5432 <link to="IVirtualBox::createMachine()"/>,
5433 <link to="IVirtualBox::openMachine()"/>
5434 </see>
5435 </desc>
5436 </attribute>
5437
5438 <attribute name="remoteDisplayAuthLibrary" type="wstring">
5439 <desc>
5440 Library that provides authentication for VRDP clients. The library
5441 is used if a virtual machine's authentication type is set to "external"
5442 in the VM RemoteDisplay configuration.
5443
5444 The system library extension (".DLL" or ".so") must be omitted.
5445 A full path can be specified; if not, then the library must reside on the
5446 system's default library path.
5447
5448 The default value of this property is <tt>VRDPAuth</tt>. There is a library
5449 of that name in one of the default VirtualBox library directories.
5450
5451 For details about VirtualBox authentication libraries and how to implement
5452 them, please refer to the VirtualBox manual.
5453
5454 <note>
5455 Setting this property to <tt>null</tt> will restore the
5456 initial value.
5457 </note>
5458 </desc>
5459 </attribute>
5460
5461 <attribute name="webServiceAuthLibrary" type="wstring">
5462 <desc>
5463 Library that provides authentication for webservice clients. The library
5464 is used if a virtual machine's authentication type is set to "external"
5465 in the VM RemoteDisplay configuration and will be called from
5466 within the <link to="IWebsessionManager::logon" /> implementation.
5467
5468 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
5469 there is no per-VM setting for this, as the webservice is a global
5470 resource (if it is running). Only for this setting (for the webservice),
5471 setting this value to a literal "null" string disables authentication,
5472 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
5473 no matter what user name and password are supplied.
5474
5475 The initial value of this property is <tt>VRDPAuth</tt>,
5476 meaning that the webservice will use the same authentication
5477 library that is used by default for VBoxVRDP (again, see
5478 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
5479 The format and calling convetion of authentication libraries
5480 is the same for the webservice as it is for VBoxVRDP.
5481
5482 </desc>
5483 </attribute>
5484
5485 <attribute name="HWVirtExEnabled" type="boolean">
5486 <desc>
5487 This specifies the default value for hardware virtualization
5488 extensions. If enabled, virtual machines will make use of
5489 hardware virtualization extensions such as Intel VT-x and
5490 AMD-V by default. This value can be overridden by each VM
5491 using their <link to="IMachine::HWVirtExEnabled" /> property.
5492 </desc>
5493 </attribute>
5494
5495 <attribute name="LogHistoryCount" type="unsigned long">
5496 <desc>
5497 This value specifies how many old release log files are kept.
5498 </desc>
5499 </attribute>
5500 </interface>
5501
5502 <!--
5503 // IGuest
5504 /////////////////////////////////////////////////////////////////////////
5505 -->
5506
5507 <interface
5508 name="IGuestOSType" extends="$unknown"
5509 uuid="da94f478-1f37-4726-b750-2235950dc2fe"
5510 wsmap="struct"
5511 >
5512 <desc>
5513 </desc>
5514
5515 <attribute name="id" type="wstring" readonly="yes">
5516 <desc>Guest OS identifier string.</desc>
5517 </attribute>
5518
5519 <attribute name="description" type="wstring" readonly="yes">
5520 <desc>Human readable description of the guest OS.</desc>
5521 </attribute>
5522
5523 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
5524 <desc>Recommended RAM size in Megabytes.</desc>
5525 </attribute>
5526
5527 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
5528 <desc>Recommended video RAM size in Megabytes.</desc>
5529 </attribute>
5530
5531 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
5532 <desc>Recommended hard disk size in Megabytes.</desc>
5533 </attribute>
5534 </interface>
5535
5536
5537 <enumerator
5538 name="IGuestOSTypeEnumerator" type="IGuestOSType"
5539 uuid="a3335e02-4669-4e3c-80c7-c4dc7056a07c"
5540 />
5541
5542 <collection
5543 name="IGuestOSTypeCollection" type="IGuestOSType" enumerator="IGuestOSTypeEnumerator"
5544 uuid="a5e36749-a610-498b-9f29-2e36c1042d65"
5545 readonly="yes"
5546 />
5547
5548 <interface
5549 name="IGuest" extends="$unknown"
5550 uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
5551
5552 wsmap="suppress"
5553 >
5554 <desc>
5555 The IGuest interface represents information about the operating system
5556 running inside the virtual machine. Used in
5557 <link to="IConsole::guest"/>.
5558
5559 IGuest provides information about the guest operating system, whether
5560 Guest Additions are installed and other OS-specific virtual machine
5561 properties.
5562 </desc>
5563
5564 <attribute name="OSTypeId" type="wstring" readonly="yes">
5565 <desc>
5566 Identifier of the Guest OS type as reported by the Guest
5567 Additions.
5568 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
5569 an IGuestOSType object representing details about the given
5570 Guest OS type.
5571 <note>
5572 If Guest Additions are not installed, this value will be
5573 the same as <link to="IMachine::OSTypeId"/>.
5574 </note>
5575 </desc>
5576 </attribute>
5577
5578 <attribute name="additionsActive" type="boolean" readonly="yes">
5579 <desc>
5580 Flag whether the Guest Additions are installed and active
5581 in which case their version will be returned by the
5582 <link to="#additionsVersion"/> property.
5583 </desc>
5584 </attribute>
5585
5586 <attribute name="additionsVersion" type="wstring" readonly="yes">
5587 <desc>
5588 Version of the Guest Additions (3 decimal numbers separated
5589 by dots) or empty when the Additions are not installed. The
5590 Additions may also report a version but yet not be active as
5591 the version might be refused by VirtualBox (incompatible) or
5592 other failures occured.
5593 </desc>
5594 </attribute>
5595
5596 <attribute name="supportsSeamless" type="boolean" readonly="yes">
5597 <desc>
5598 Flag whether seamless guest display rendering (seamless desktop
5599 integration) is supported.
5600 </desc>
5601 </attribute>
5602
5603 <attribute name="supportsGraphics" type="boolean" readonly="yes">
5604 <desc>
5605 Flag whether the guest is in graphics mode. If it is not, then
5606 seamless rendering will not work, resize hints are not immediately
5607 acted on and guest display resizes are probably not initiated by
5608 the guest additions.
5609 </desc>
5610 </attribute>
5611
5612 <attribute name="memoryBalloonSize" type="unsigned long">
5613 <desc>Guest system memory balloon size in megabytes.</desc>
5614 </attribute>
5615
5616 <attribute name="statisticsUpdateInterval" type="unsigned long">
5617 <desc>Interval to update guest statistics in seconds.</desc>
5618 </attribute>
5619
5620 <method name="setCredentials">
5621 <desc>
5622 Store login credentials that can be queried by guest operating
5623 systems with Additions installed. The credentials are transient
5624 to the session and the guest may also choose to erase them. Note
5625 that the caller cannot determine whether the guest operating system
5626 has queried or made use of the credentials.
5627 </desc>
5628 <param name="userName" type="wstring" dir="in">
5629 <desc>User name string, can be empty</desc>
5630 </param>
5631 <param name="password" type="wstring" dir="in">
5632 <desc>Password string, can be empty</desc>
5633 </param>
5634 <param name="domain" type="wstring" dir="in">
5635 <desc>Domain name (guest logon scheme specific), can be emtpy</desc>
5636 </param>
5637 <param name="allowInteractiveLogon" type="boolean" dir="in">
5638 <desc>
5639 Flag whether the guest should alternatively allow the user to
5640 interactively specify different credentials. This flag might
5641 not be supported by all versions of the Additions.
5642 </desc>
5643 </param>
5644 </method>
5645
5646 <method name="getStatistic">
5647 <desc>
5648 Query specified guest statistics as reported by the VirtualBox Additions.
5649 </desc>
5650 <param name="cpuId" type="unsigned long" dir="in">
5651 <desc>Virtual CPU id; not relevant for all statistic types</desc>
5652 </param>
5653 <param name="statistic" type="GuestStatisticType" dir="in">
5654 <desc>Statistic type.</desc>
5655 </param>
5656 <param name="statVal" type="unsigned long" dir="out">
5657 <desc>Statistics value</desc>
5658 </param>
5659 </method>
5660
5661 </interface>
5662
5663
5664 <!--
5665 // IProgress
5666 /////////////////////////////////////////////////////////////////////////
5667 -->
5668
5669 <enumerator
5670 name="IProgressEnumerator" type="IProgress"
5671 uuid="e0380522-4ef1-48f4-856c-e455177ccb2d"
5672 />
5673
5674 <collection
5675 name="IProgressCollection" type="IProgress" enumerator="IProgressEnumerator"
5676 uuid="78B76A7C-F0F2-467c-9F0E-F089A54EE957"
5677 readonly="yes"
5678 />
5679
5680 <interface
5681 name="IProgress" extends="$unknown"
5682 uuid="10CC03A1-717E-429b-992D-C67B56175A51"
5683 wsmap="managed"
5684 >
5685 <desc>
5686 The IProgress interface represents a task progress object that allows
5687 to wait for the completion of some asynchronous task.
5688
5689 The task consists of one or more operations that run sequentially,
5690 one after one. There is an individual percent of completion of the
5691 current operation and the percent of completion of the task as a
5692 whole. Similarly, you can wait for the completion of a particular
5693 operation or for the completion of the whole task.
5694
5695 Every operation is identified by a number (starting from 0)
5696 and has a separate description.
5697 </desc>
5698
5699 <attribute name="id" type="uuid" readonly="yes">
5700 <desc>ID of the task.</desc>
5701 </attribute>
5702
5703 <attribute name="description" type="wstring" readonly="yes">
5704 <desc>Description of the task.</desc>
5705 </attribute>
5706
5707 <attribute name="initiator" type="$unknown" readonly="yes">
5708 <desc>Initiator of the task.</desc>
5709 </attribute>
5710
5711 <attribute name="cancelable" type="boolean" readonly="yes">
5712 <desc>Whether the task can be interrupted.</desc>
5713 </attribute>
5714
5715 <attribute name="percent" type="long" readonly="yes">
5716 <desc>
5717 Current task progress value in percent.
5718 This value depends on how many operations are already complete.
5719 </desc>
5720 </attribute>
5721
5722 <attribute name="completed" type="boolean" readonly="yes">
5723 <desc>Whether the task has been completed.</desc>
5724 </attribute>
5725
5726 <attribute name="canceled" type="boolean" readonly="yes">
5727 <desc>Whether the task has been canceled.</desc>
5728 </attribute>
5729
5730 <attribute name="resultCode" type="result" readonly="yes">
5731 <desc>
5732 Result code of the progress task.
5733 Valid only if <link to="#completed"/> is true.
5734 </desc>
5735 </attribute>
5736
5737 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
5738 <desc>
5739 Extended information about the unsuccessful result of the
5740 progress operation. May be NULL when no extended information
5741 is available.
5742 Valid only if <link to="#completed"/> is true and
5743 <link to="#resultCode"/> indicates a failure.
5744 </desc>
5745 </attribute>
5746
5747 <attribute name="operationCount" type="unsigned long" readonly="yes">
5748 <desc>
5749 Number of operations this task is divided into.
5750 Every task consists of at least one operation.
5751 </desc>
5752 </attribute>
5753
5754 <attribute name="operation" type="unsigned long" readonly="yes">
5755 <desc>Number of the operation being currently executed.</desc>
5756 </attribute>
5757
5758 <attribute name="operationDescription" type="wstring" readonly="yes">
5759 <desc>
5760 Description of the operation being currently executed.
5761 </desc>
5762 </attribute>
5763
5764 <attribute name="operationPercent" type="long" readonly="yes">
5765 <desc>Current operation progress value in percent.</desc>
5766 </attribute>
5767
5768 <method name="waitForCompletion">
5769 <desc>
5770 Waits until the task is done (including all operations) with a
5771 given timeout.
5772 </desc>
5773 <param name="timeout" type="long" dir="in">
5774 <desc>
5775 Timeout value in milliseconds.
5776 Specify -1 for an indefinite wait.
5777 </desc>
5778 </param>
5779 </method>
5780
5781 <method name="waitForOperationCompletion">
5782 <desc>
5783 Waits until the given operation is done with a given timeout.
5784 </desc>
5785 <param name="operation" type="unsigned long" dir="in">
5786 <desc>
5787 Number of the operation to wait for.
5788 Must be less than <link to="#operationCount"/>.
5789 </desc>
5790 </param>
5791 <param name="timeout" type="long" dir="in">
5792 <desc>
5793 Timeout value in milliseconds.
5794 Specify -1 for an indefinite wait.
5795 </desc>
5796 </param>
5797 </method>
5798
5799 <method name="cancel">
5800 <desc>
5801 Cancels the task.
5802 <note>
5803 If <link to="#cancelable"/> is <tt>false</tt>, then
5804 this method will fail.
5805 </note>
5806 </desc>
5807 </method>
5808
5809 </interface>
5810
5811
5812 <!--
5813 // ISnapshot
5814 /////////////////////////////////////////////////////////////////////////
5815 -->
5816
5817 <enumerator
5818 name="ISnapshotEnumerator" type="ISnapshot"
5819 uuid="25cfa2a4-1f1d-4f05-9658-b7a5894ef1a3"
5820 />
5821
5822 <collection
5823 name="ISnapshotCollection" type="ISnapshot"
5824 enumerator="ISnapshotEnumerator"
5825 uuid="23852e3c-94cd-4801-ab05-ed35675b3894"
5826 readonly="yes"
5827 />
5828
5829 <interface
5830 name="ISnapshot" extends="$unknown"
5831 uuid="9f1bbf79-13b0-4da2-abba-4a992c65c083"
5832 wsmap="managed"
5833 >
5834 <desc>
5835 The ISnapshot interface represents a snapshot of the virtual
5836 machine.
5837
5838 The <i>snapshot</i> stores all the information about a virtual
5839 machine necessary to bring it to exactly the same state as it was at
5840 the time of taking the snapshot. The snapshot includes:
5841
5842 <ul>
5843 <li>all settings of the virtual machine (i.e. its hardware
5844 configuration: RAM size, attached hard disks, etc.)
5845 </li>
5846 <li>the execution state of the virtual machine (memory contents,
5847 CPU state, etc.).
5848 </li>
5849 </ul>
5850
5851 Snapshots can be <i>offline</i> (taken when the VM is powered off)
5852 or <i>online</i> (taken when the VM is running). The execution
5853 state of the offline snapshot is called a <i>zero execution state</i>
5854 (it doesn't actually contain any information about memory contents
5855 or the CPU state, assuming that all hardware is just powered off).
5856
5857 <h3>Snapshot branches</h3>
5858
5859 Snapshots can be chained. Chained snapshots form a branch where
5860 every next snapshot is based on the previous one. This chaining is
5861 mostly related to hard disk branching (see <link to="IHardDisk"/>
5862 description). This means that every time a new snapshot is created,
5863 a new differencing hard disk is implicitly created for all normal
5864 hard disks attached to the given virtual machine. This allows to
5865 fully restore hard disk contents when the machine is later reverted
5866 to a particular snapshot.
5867
5868 In the current implelemtation, multiple snapshot branches within one
5869 virtual machine are not allowed. Every machine has a signle branch,
5870 and <link to="IConsole::takeSnapshot()"/> operation adds a new
5871 snapshot to the top of that branch.
5872
5873 Existings snapshots can be discarded using
5874 <link to="IConsole::discardSnapshot()"/>.
5875
5876 <h3>Current snapshot</h3>
5877
5878 Every virtual machine has a current snapshot, identified by
5879 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
5880 a base for the <i>current machine state</i> (see below), to the effect
5881 that all normal hard disks of the machine and its execution
5882 state are based on this snapshot.
5883
5884 In the current implementation, the current snapshot is always the
5885 last taken snapshot (i.e. the head snapshot on the branch) and it
5886 cannot be changed.
5887
5888 The current snapshot is <tt>null</tt> if the machine doesn't have
5889 snapshots at all; in this case the current machine state is just
5890 current settings of this machine plus its current execution state.
5891
5892 <h3>Current machine state</h3>
5893
5894 The current machine state is what represened by IMachine instances got
5895 directly from IVirtualBox
5896 using <link
5897 to="IVirtualBox::getMachine()">getMachine()</link>, <link
5898 to="IVirtualBox::findMachine()">findMachine()</link>, etc. (as opposed
5899 to instances returned by <link to="ISnapshot::machine"/>). This state
5900 is always used when the machine is <link to="IConsole::powerUp"> powered
5901 on</link>.
5902
5903 The current machine state also includes the current execution state.
5904 If the machine is being currently executed
5905 (<link to="IMachine::state"/> is <link to="MachineState::Running"/>
5906 and above), its execution state is just what's happening now.
5907 If it is powered off (<link to="MachineState::PoweredOff"/> or
5908 <link to="MachineState::Aborted"/>), it has a zero execution state.
5909 If the machine is saved (<link to="MachineState::Saved"/>), its
5910 execution state is what saved in the execution state file
5911 (<link to="IMachine::stateFilePath"/>).
5912
5913 If the machine is in the saved state, then, next time it is powered
5914 on, its execution state will be fully restored from the saved state
5915 file and the execution will continue from the point where the state
5916 was saved.
5917
5918 Similarly to snapshots, the current machine state can be discarded
5919 using <link to="IConsole::discardCurrentState()"/>.
5920
5921 <h3>Taking and discarding snapshots</h3>
5922
5923 The table below briefly explains the meaning of every snapshot
5924 operation:
5925
5926 <table>
5927 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
5928
5929 <tr><td><link to="IConsole::takeSnapshot()"/></td>
5930
5931 <td>Save the current state of the virtual machine, including all
5932 settings, contents of normal hard disks and the current modifications
5933 to immutable hard disks (for online snapshots)</td>
5934
5935 <td>The current state is not changed (the machine will continue
5936 execution if it is being executed when the snapshot is
5937 taken)</td></tr>
5938
5939 <tr><td><link to="IConsole::discardSnapshot()"/></td>
5940
5941 <td>Forget the state of the virtual machine stored in the snapshot:
5942 dismiss all saved settings and delete the saved execution state (for
5943 online snapshots)</td>
5944
5945 <td>Other snapshots (including child snapshots, if any) and the
5946 current state are not directly affected</td></tr>
5947
5948 <tr><td><link to="IConsole::discardCurrentState()"/></td>
5949
5950 <td>Restore the current state of the virtual machine from the state
5951 stored in the current snapshot, including all settings and hard disk
5952 contents</td>
5953
5954 <td>The current state of the machine existed prior to this operation
5955 is lost</td></tr>
5956
5957 <tr><td><link to="IConsole::discardCurrentSnapshotAndState()"/></td>
5958
5959 <td>Completely revert the virtual machine to the state it was in
5960 before the current snapshot has been taken</td>
5961
5962 <td>The current state, as well as the current snapshot, are
5963 lost</td></tr>
5964
5965 </table>
5966
5967 </desc>
5968
5969 <attribute name="id" type="uuid" readonly="yes">
5970 <desc>UUID of the snapshot.</desc>
5971 </attribute>
5972
5973 <attribute name="name" type="wstring">
5974 <desc>Short name of the snapshot.</desc>
5975 </attribute>
5976
5977 <attribute name="description" type="wstring">
5978 <desc>Optional description of the snapshot.</desc>
5979 </attribute>
5980
5981 <attribute name="timeStamp" type="long long" readonly="yes">
5982 <desc>
5983 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
5984 </desc>
5985 </attribute>
5986
5987 <attribute name="online" type="boolean" readonly="yes">
5988 <desc>
5989 <tt>true</tt> if this snapshot is an online snapshot and
5990 <tt>false</tt> otherwise.
5991
5992 <note>
5993 When this attribute is <tt>true</tt>, the
5994 <link to="IMachine::stateFilePath"/> attribute of the
5995 <link to="#machine"/> object associated with this snapshot
5996 will point to the saved state file. Otherwise, it will be
5997 <tt>null</tt>.
5998 </note>
5999 </desc>
6000 </attribute>
6001
6002 <attribute name="machine" type="IMachine" readonly="yes">
6003 <desc>
6004 Virtual machine this snapshot is taken on. This object
6005 stores all settings the machine had when taking this snapshot.
6006 <note>
6007 The returned machine object is immutable, i.e. no
6008 any settings can be changed.
6009 </note>
6010 </desc>
6011 </attribute>
6012
6013 <attribute name="parent" type="ISnapshot" readonly="yes">
6014 <desc>
6015 Parent snapshot (a snapshot this one is based on).
6016 <note>
6017 It's not an error to read this attribute on a snapshot
6018 that doesn't have a parent -- a null object will be
6019 returned to indicate this.
6020 </note>
6021 </desc>
6022 </attribute>
6023
6024 <attribute name="children" type="ISnapshotCollection" readonly="yes">
6025 <desc>
6026 Child snapshots (all snapshots having this one as a parent).
6027 <note>
6028 In the current implementation, there can be only one
6029 child snapshot, or no children at all, meaning this is the
6030 last (head) snapshot.
6031 </note>
6032 </desc>
6033 </attribute>
6034
6035 </interface>
6036
6037 <!--
6038 // IHardDisk
6039 /////////////////////////////////////////////////////////////////////////
6040 -->
6041
6042 <enum
6043 name="HardDiskStorageType"
6044 uuid="48138584-ad99-479d-a36f-eb82a7663685"
6045 >
6046 <desc>
6047 Virtual hard disk storage type.
6048 <see>IHardDisk</see>
6049 </desc>
6050
6051 <const name="VirtualDiskImage" value="0">
6052 <desc>
6053 Virtual Disk Image, VDI (a regular file in the file
6054 system of the host OS, see <link to="IVirtualDiskImage"/>)
6055 </desc>
6056 </const>
6057 <const name="ISCSIHardDisk" value="1">
6058 <desc>
6059 iSCSI Remote Disk (a disk accessed via the Internet
6060 SCSI protocol over a TCP/IP network, see
6061 <link to="IISCSIHardDisk"/>)
6062 </desc>
6063 </const>
6064 <const name="VMDKImage" value="2">
6065 <desc>
6066 VMware Virtual Machine Disk image (a regular file in the file
6067 system of the host OS, see <link to="IVMDKImage"/>)
6068 </desc>
6069 </const>
6070 <const name="CustomHardDisk" value="3">
6071 <desc>
6072 Disk formats supported through plugins (see
6073 <link to="ICustomHardDisk"/>)
6074 </desc>
6075 </const>
6076 <const name="VHDImage" value="4">
6077 <desc>
6078 Virtual PC Virtual Machine Disk image (a regular file in the file
6079 system of the host OS, see <link to="IVHDImage"/>)
6080 </desc>
6081 </const>
6082 </enum>
6083
6084 <enum
6085 name="HardDiskType"
6086 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
6087 >
6088 <desc>
6089 Virtual hard disk type.
6090 <see>IHardDisk</see>
6091 </desc>
6092
6093 <const name="Normal" value="0">
6094 <desc>
6095 Normal hard disk (attached directly or indirectly, preserved
6096 when taking snapshots).
6097 </desc>
6098 </const>
6099 <const name="Immutable" value="1">
6100 <desc>
6101 Immutable hard disk (attached indirectly, changes are wiped out
6102 after powering off the virtual machine).
6103 </desc>
6104 </const>
6105 <const name="Writethrough" value="2">
6106 <desc>
6107 Write through hard disk (attached directly, ignored when
6108 taking snapshots).
6109 </desc>
6110 </const>
6111 </enum>
6112
6113 <interface
6114 name="IHardDiskAttachment" extends="$unknown"
6115 uuid="c0ffe596-21c6-4797-8d8a-b47b66881e7a"
6116 wsmap="struct"
6117 >
6118 <desc>
6119 </desc>
6120 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
6121 <desc>Harddisk object this attachment is about.</desc>
6122 </attribute>
6123
6124 <attribute name="bus" type="StorageBus" readonly="yes">
6125 <desc>Disk controller ID of this attachment.</desc>
6126 </attribute>
6127
6128 <attribute name="channel" type="long" readonly="yes">
6129 <desc>Channel number of the attachment.</desc>
6130 </attribute>
6131
6132 <attribute name="device" type="long" readonly="yes">
6133 <desc>Device slot number of the attachment.</desc>
6134 </attribute>
6135
6136 </interface>
6137
6138 <enumerator
6139 name="IHardDiskAttachmentEnumerator" type="IHardDiskAttachment"
6140 uuid="9955e486-2f0b-432a-99e4-0ebbd338875e"
6141 />
6142
6143 <collection
6144 name="IHardDiskAttachmentCollection" type="IHardDiskAttachment"
6145 enumerator="IHardDiskAttachmentEnumerator"
6146 uuid="8f727842-bb77-45d4-92de-4ec14bf613c9"
6147 readonly="yes"
6148 />
6149
6150 <enumerator
6151 name="IHardDiskEnumerator" type="IHardDisk"
6152 uuid="b976f97b-cdb8-47e3-9860-084031cbd533"
6153 />
6154
6155 <collection
6156 name="IHardDiskCollection" type="IHardDisk"
6157 enumerator="IHardDiskEnumerator"
6158 uuid="43EAC2BC-5C61-40fa-BC38-46DE2C7DB6BB"
6159 readonly="yes"
6160 />
6161
6162 <interface
6163 name="IHardDisk" extends="$unknown"
6164 uuid="FD443EC1-000F-4F5B-9282-D72760A66916"
6165 wsmap="managed"
6166 >
6167 <desc>
6168 The IHardDisk interface represents a virtual hard disk drive
6169 used by virtual machines.
6170
6171 The virtual hard disk drive virtualizes the hard disk hardware and
6172 looks like a regular hard disk inside the virtual machine and
6173 the guest OS.
6174
6175 <h3>Storage Types</h3>
6176
6177 The <link to="HardDiskStorageType">storage type</link> of the
6178 virtual hard disk determines where and how it stores its data
6179 (sectors). Currently, the following storage types are supported:
6180
6181 <ul>
6182
6183 <li>
6184 <i>Virtual Disk Image (VDI)</i>, a regular file in the file system
6185 of the host OS (represented by the <link to="IVirtualDiskImage"/>
6186 interface). This file has a special format optimized so that unused
6187 sectors of data occupy much less space than on a physical hard disk.
6188 </li>
6189
6190 <li>
6191 <i>iSCSI Remote Disk</i>, a disk accessed via the Internet SCSI
6192 protocol over a TCP/IP network link (represented by the
6193 <link to="IISCSIHardDisk"/> interface).
6194 </li>
6195
6196 <li>
6197 <i>VMware VMDK image</i>, a regular file in the file system of the
6198 host OS (represented by the <link to="IVMDKImage"/> interface).
6199 Note that the regular file may be just a descriptor referring to
6200 further files, so don't make assumptions about the OS representation
6201 of a VMDK image.
6202 </li>
6203
6204 <li>
6205 <i>Custom HardDisk</i>, a disk accessed via a plugin which is loaded
6206 when the disk is accessed (represented by the
6207 <link to="ICustomHardDisk"/> interface).
6208 </li>
6209
6210 <li>
6211 <i>Virtual PC VHD Image</i>, a regular file in the file system of the
6212 host OS (represented by the <link to="IVHDImage"/> interface).
6213 </li>
6214
6215 </ul>
6216
6217 The storage type of the particular hard disk object is indicated by
6218 the <link to="#storageType"/> property.
6219
6220 Each storage type is represented by its own interface (as shown
6221 above), that allows to query and set properties and perform
6222 operations specific to that storage type. When an IHardDisk object
6223 reports it uses some particular storage type, it also guaranteed to
6224 support the corresponding interface which you can query. And vice
6225 versa, every object that supports a storage-specific interface, also
6226 supports IHardDisk.
6227
6228 <h3>Virtual Hard Disk Types</h3>
6229
6230 The <link to="HardDiskType">type</link> of the virtual hard disk
6231 determines how it is attached to the virtual machine when you call
6232 <link to="IMachine::attachHardDisk()"/> and what happens to it when
6233 a <link to="ISnapshot">snapshot</link> of the virtual machine is
6234 taken.
6235
6236 There are three types of virtual hard disks:
6237
6238 <ul>
6239 <li><i>Normal</i></li>
6240 <li><i>Immutable</i></li>
6241 <li><i>Writethrough</i></li>
6242 </ul>
6243
6244 The virtual disk type is indicated by the <link to="#type"/>
6245 property. Each of the above types is described in detail further
6246 down.
6247
6248 There is also a forth, "hidden" virtual disk type:
6249 <i>Differencing</i>. It is "hidden" because you cannot directly
6250 create hard disks of this type -- they are automatically created by
6251 VirtualBox when necessary.
6252
6253 <b>Differencing Hard Disks</b>
6254
6255 Unlike disks of other types (that are similar to real hard disks),
6256 the differencing hard disk does not store the full range of data
6257 sectors. Instead, it stores only a subset of sectors of some other
6258 disk that were changed since the differencing hard disk has been
6259 created. Thus, every differencing hard disk has a parent hard disk
6260 it is linked to, and represents the difference between the initial
6261 and the current hard disk state. A differencing hard disk can be
6262 linked to another differencing hard disk -- this way, differencing
6263 hard disks can form a branch of changes. More over, a given virtual
6264 hard disk can have more than one differencing hard disk linked to
6265 it.
6266
6267 A disk the differencing hard disk is linked to (or, in other words,
6268 based on) is called a <i>parent</i> hard disk and is accessible through
6269 the <link to="#parent"/> property. Similarly, all existing differencing
6270 hard disks for a given parent hard disk are called its <i>child</i> hard
6271 disks (and accessible through the <link to="#children"/> property).
6272
6273 All differencing hard disks use Virtual Disk Image files to store
6274 changed sectors. They have the <link to="#type"/> property set to
6275 Normal, but can be easily distinguished from normal hard disks using
6276 the <link to="#parent"/> property: all differencing hard disks have
6277 a parent, while all normal hard disks don't.
6278
6279 When the virtual machine makes an attempt to read a sector that is
6280 missing in a differencing hard disk, its parent is accessed to
6281 resolve the sector in question. This process continues until the
6282 sector is found, or until the root hard disk is encountered, which
6283 always contains all sectors. As a consequence,
6284
6285 <ul>
6286
6287 <li>
6288 The virtual hard disk geometry seen by the guest OS is
6289 always defined by the root hard disk.
6290 </li>
6291
6292 <li>
6293 All hard disks on a branch, up to the root, must be
6294 <link to="#accessible"/> for a given differencing hard disk in order
6295 to let it function properly when the virtual machine is
6296 running.
6297 </li>
6298
6299 </ul>
6300
6301 Differencing hard disks can be implicitly created by VirtualBox in
6302 the following cases:
6303
6304 <ul>
6305
6306 <li>
6307 When a hard disk is <i>indirectly</i> attached to the virtual
6308 machine using <link to="IMachine::attachHardDisk()"/>. In this
6309 case, all disk writes performed by the guest OS will go to the
6310 created diffferencing hard disk, as opposed to the
6311 <i>direct</i> attachment, where all changes are written to the
6312 attached hard disk itself.
6313 </li>
6314
6315 <li>
6316 When a <link to="ISnapshot">snapshot</link> of the virtual machine
6317 is taken. After that, disk writes to hard disks the differencing
6318 ones have been created for, will be directed to those differencing
6319 hard disks, to preserve the contents of the original disks.
6320 </li>
6321
6322 </ul>
6323
6324 Whether to create a differencing hard disk or not depends on the
6325 type of the hard disk attached to the virtual machine. This is
6326 explained below.
6327
6328 Note that in the current implementation, only the
6329 <link to="VirtualDiskImage"/> storage type is used to
6330 represent differencing hard disks. In other words, all
6331 differencing hard disks are <link to="IVirtualDiskImage"/>
6332 objects.
6333
6334 <b>Normal Hard Disks</b>
6335
6336 Normal hard disks are the most commonly used virtual hard disk. A
6337 normal hard disk is attached to the machine directly if it is not
6338 already attached to some other machine. Otherwise, an attempt to
6339 make an indirect attachment through a differencing hard disk will be
6340 made. This attempt will fail if the hard disk is attached to a
6341 virtual machine without snapshots (because it's impossible to create
6342 a differencing hard disk based on a hard disk that is subject to
6343 change).
6344
6345 When an indirect attachment takes place, in the simplest case, where
6346 the machine the hard disk is being attached to doesn't have
6347 snapshots, the differencing hard disk will be based on the normal
6348 hard disk being attached. Otherwise, the first (i.e. the most
6349 recent) descendant of the given normal hard disk found in the
6350 current snapshot branch (starting from the current snapshot and
6351 going up to the root) will be actually used as a base.
6352
6353 Note that when you detach an indirectly attached hard disk from the
6354 machine, the created differencing hard disk image is simply
6355 <b>deleted</b>, so <b>all changes are lost</b>. If you attach the
6356 same disk again, a clean differencing disk will be created based on
6357 the most recent child, as described above.
6358
6359 When taking a snapshot, the contents of all normal hard disks (and
6360 all differencing disks whose roots are normal hard disks) currently
6361 attached to the virtual machine is preserved by creating
6362 differencing hard disks based on them.
6363
6364 <b>Immutable Hard Disks</b>
6365
6366 Immutable hard disks can be used to provide a sort of read-only
6367 access. An immutable hard disk is always attached indirectly. The
6368 created differencing hard disk is automatically wiped out (recreated
6369 from scratch) every time you power off the virtual machine. Thus,
6370 the contents of the immutable disk remains unchanged between runs.
6371
6372 Detaching an immutable hard disk deletes the differencing disk
6373 created for it, with the same effect as in case with normal hard
6374 disks.
6375
6376 When taking a snapshot, the differencing part of the immutable
6377 hard disk is cloned (i.e. copied to a separate Virtual Disk Image
6378 file) without any changes. This is necessary to preserve the exact
6379 virtual machine state when you create an online snapshot.
6380
6381 <b>Writethrough Hard Disks</b>
6382
6383 Hard disks of this type are always attached directly. This means
6384 that every given writethrough hard disk can be attached only to one
6385 virtual machine at a time.
6386
6387 It is impossible to take a snapshot of a virtual machine with the
6388 writethrough hard disk attached, because taking a snapshot implies
6389 saving the execution state and preserving the contents of all hard
6390 disks, but writethrough hard disks cannot be preserved. Preserving
6391 hard disk contents is necessary to ensure the guest OS stored in the
6392 snapshot will get the same hard disk state when restored, which is
6393 especially important when it has open file handles or when there are
6394 cached files and directories stored in memory.
6395
6396 <h3>Creating, Opening and Registering Hard Disks</h3>
6397
6398 Non-differencing hard disks are either created from scratch using
6399 <link to="IVirtualBox::createHardDisk()"/> or opened from a VDI file
6400 using <link to="IVirtualBox::openVirtualDiskImage()"/> (only for hard
6401 disks using the VirtualDiskImage storage type). Once a hard disk is
6402 created or opened, it needs to be registered using
6403 <link to="IVirtualBox::registerHardDisk()"/> to make it available for
6404 attaching to virtual machines. See the documentation of individual
6405 interfaces for various storage types to get more information.
6406
6407 Differencing hard disks are never created explicitly and cannot
6408 be registered or unregistered; they are automatically registered
6409 upon creation and deregistered when deleted.
6410
6411 <h3>More about Indirect Hard Disk Attachments</h3>
6412
6413 Normally, when you attach a hard disk to the virtual machine, and then
6414 query the corresponding attachment using
6415 <link to="IMachine::getHardDisk()"/> or
6416 <link to="IMachine::hardDiskAttachments"/> you will get the same hard
6417 disk object, whose UUID you passed earlier to
6418 <link to="IMachine::attachHardDisk()"/>. However, when an indirect
6419 attachment takes place, calling <link to="IMachine::getHardDisk()"/>
6420 will return a differencing hard disk object, that is either based on the
6421 attached hard disk or on another differencing hard disk, the attached
6422 hard disk is eventually a root for (as described above). In both cases
6423 the returned hard disk object is the object the virtual machine actually
6424 uses to perform disk writes to.
6425
6426 Regardless of whether the attachment is direct or indirect, the
6427 <link to="#machineId"/> property of the attached disk will contain an
6428 UUID of the machine object <link to="IMachine::attachHardDisk()"/>
6429 has been called on.
6430
6431 Note that both <link to="IMachine::attachHardDisk()"/> and
6432 <link to="IMachine::detachHardDisk()"/> are <i>lazy</i> operations. In
6433 particular, this means that when an indirect attachment is made,
6434 differencing hard disks are not created until machine settings are
6435 committed using <link to="IMachine::saveSettings()"/>. Similarly, when a
6436 differencing hard disk is detached, it is not deleted until
6437 <link to="IMachine::saveSettings()"/> is called. Calling
6438 <link to="IMachine::discardSettings()"/> cancels all lazy attachments or
6439 detachments made since the last commit and effectively restores the
6440 previous set of hard disks.
6441
6442 <h3>Hard Disk Accessibility</h3>
6443
6444 The <link to="#accessible"/> attribute of the hard disk object
6445 defines the accessibility state of the respective hard disk storage
6446 (for example, the VDI file for IVirtualDiskImage objects). If the
6447 value of this attribute is <tt>false</tt> then some hard disk
6448 attributes may contain invalid or outdated values (for example, the
6449 virtual or the actual hard disk size) until a new accessibility
6450 check is done that returns <tt>true</tt> (see the attribute
6451 description for more details).
6452
6453 <note>
6454 Since checking the accessibility of a hard disk is a potentially
6455 very slow operation, it is not performed implicitly when the
6456 VirtualBox server process starts up to prevent the application from
6457 freezing. In particular, this means that if you try to read hard disk
6458 properties that depend on the accessibility state without first
6459 reading the value of the <link to="#accessible"/> attribute and
6460 ensuring its value is <tt>true</tt>, you will get wrong (zero) values.
6461 </note>
6462
6463 </desc>
6464
6465 <attribute name="id" type="uuid" readonly="yes">
6466 <desc>
6467
6468 UUID of the hard disk. For newly created hard disk objects,
6469 this value is a randomly generated UUID.
6470
6471 </desc>
6472 </attribute>
6473
6474 <attribute name="description" type="wstring">
6475 <desc>
6476
6477 Optional description of the hard disk. For a newly created hard
6478 disk, this value is <tt>null</tt>.
6479
6480 <note>For some storage types, reading this property is
6481 meaningless when <link to="#accessible"/> is <tt>false</tt>.
6482 Also, you cannot assign it a new value in this case.</note>
6483
6484 </desc>
6485 </attribute>
6486
6487 <attribute name="storageType" type="HardDiskStorageType" readonly="yes">
6488 <desc>
6489
6490 Storage type of this hard disk.
6491
6492 Storage type is defined when you open or create a new hard disk
6493 object.
6494
6495 </desc>
6496 </attribute>
6497
6498 <attribute name="location" type="wstring" readonly="yes">
6499 <desc>
6500
6501 Storage location of this hard disk. The returned string serves
6502 for informational purposes only. To access detailed information
6503 about the storage, query the appropriate storage-specific
6504 interface.
6505
6506 </desc>
6507 </attribute>
6508
6509 <attribute name="type" type="HardDiskType">
6510 <desc>
6511
6512 Type (behavior) of this hard disk. For a newly created or opened hard
6513 disk, this value is <link to="HardDiskType::Normal"/>.
6514
6515 <note>
6516 In the current implementation, this property can be
6517 changed only on an unregistered hard disk object. This may be
6518 changed later.
6519 </note>
6520
6521 </desc>
6522 </attribute>
6523
6524 <attribute name="parent" type="IHardDisk" readonly="yes">
6525 <desc>
6526
6527 Parent of this hard disk (a hard disk this one is directly based
6528 on).
6529
6530 Only differencing hard disks have parents, so a <tt>null</tt>
6531 object is returned for a hard disk of any other type.
6532 </desc>
6533 </attribute>
6534
6535 <attribute name="children" type="IHardDiskCollection" readonly="yes">
6536 <desc>
6537
6538 Children of this hard disk (all differencing hard disks for
6539 those this one is a parent). An empty collection is returned, if
6540 this hard disk doesn't have any children.
6541
6542 </desc>
6543 </attribute>
6544
6545 <attribute name="root" type="IHardDisk" readonly="yes">
6546 <desc>
6547
6548 Root hard disk of this hard disk. If this hard disk is a
6549 differencing hard disk, its root hard disk is the first disk on
6550 the branch. For all other types of hard disks, this property
6551 returns the hard disk object itself (i.e. the same object you
6552 read this property on).
6553
6554 </desc>
6555 </attribute>
6556
6557 <attribute name="accessible" type="boolean" readonly="yes">
6558 <desc>
6559
6560 Whether the hard disk storage is currently accessible or not.
6561 The storage, for example, can be unaccessible if it doesn't exist
6562 or if it is placed on a network resource that is not available
6563 by the time this attribute is read.
6564
6565 In the current implementation, the value of this property is
6566 also <tt>false</tt> if this hard disk is attached to a running
6567 virtual machine.
6568
6569 The accessibility check is performed automatically every time
6570 this attribute is read. You should keep it in mind that this check
6571 may be slow and can block the calling thread for a long time (for
6572 example, if the network resourse where the hard disk storage is
6573 located is down).
6574
6575 The following attributes of the hard disk object are considered
6576 to be invalid when this attribute is <tt>false</tt>:
6577 <ul>
6578 <li><link to="#size"/></li>
6579 <li><link to="#actualSize"/></li>
6580 </ul>
6581 Individual hard disk storage type interfaces may define
6582 additional attributes that depend on the accessibility state.
6583 </desc>
6584 </attribute>
6585
6586 <attribute name="allAccessible" type="boolean" readonly="yes">
6587 <desc>
6588
6589 Whether the whole hard disk branch, starting from this image and
6590 going through its ancestors up to the root, is accessible or
6591 not.
6592
6593 This property makes sense only for differencing hard disks. For
6594 all other types of hard disks it returns the same value as
6595 <link to="#accessible"/>.
6596
6597 </desc>
6598 </attribute>
6599
6600 <attribute name="lastAccessError" type="wstring" readonly="yes">
6601 <desc>
6602
6603 String describing the reason of inaccessibility of this hard
6604 disk after the last call to <link to="#accessible"/> that
6605 returned <tt>false</tt>. A <tt>null</tt> value of this property
6606 means that the last accessibility check returned <tt>true</tt>.
6607
6608 </desc>
6609 </attribute>
6610
6611 <attribute name="size" type="unsigned long long" readonly="yes">
6612 <desc>
6613
6614 Logical size of this hard disk (in megabytes), as reported to the
6615 guest OS running inside the vurtual machine this disk is
6616 attached to. The logical size is defined when the hard disk is
6617 created.
6618
6619 <note>Reading this property on a differencing hard disk will
6620 return the size of its root hard disk.</note>
6621
6622 <note>Reading this property is meaningless when
6623 <link to="#accessible"/> is <tt>false</tt></note>
6624
6625 </desc>
6626 </attribute>
6627
6628 <attribute name="actualSize" type="unsigned long long" readonly="yes">
6629 <desc>
6630
6631 Physical size of the storage used to store hard disk data (in
6632 bytes). This size is usually less than the logical size of the
6633 hard disk, depending on the storage type and on the size
6634 optimization method used for that storage.
6635
6636 <note>Reading this property is meaningless when
6637 <link to="#accessible"/> is <tt>false</tt></note>
6638
6639 </desc>
6640 </attribute>
6641
6642 <attribute name="machineId" type="uuid" readonly="yes">
6643 <desc>
6644
6645 UUID of the machine this hard disk is attached to (or a
6646 <tt>null</tt> UUID if it is not attached).
6647
6648 <note>Immutable hard disks are never attached directly, so this
6649 attribute is always <tt>null</tt> in this case.</note>
6650
6651 </desc>
6652 </attribute>
6653
6654 <attribute name="snapshotId" type="uuid" readonly="yes">
6655 <desc>
6656
6657 UUID of the <link to="ISnapshot">snapshot</link> this hard disk
6658 is associated with (or <tt>null</tt> UUID if it is not
6659 associated with any snapshot).
6660
6661 <note>
6662 This attribute is always <tt>null</tt> if <link to="#machineId"/>
6663 is <tt>null</tt>.
6664 </note>
6665
6666 <note>
6667 Writethrough hard disks are always attached directly and cannot be
6668 involved when taking snapshots, so this attribute is meaningless and
6669 therefore always <tt>null</tt>.
6670 </note>
6671
6672 </desc>
6673 </attribute>
6674
6675 <method name="cloneToImage">
6676
6677 <desc>
6678
6679 Starts creating a clone of this hard disk. The cloned hard disk
6680 will use the specified Virtual Disk Image file as a storage and
6681 will contain exactly the same sector data as the hard disk being
6682 cloned, except that a new UUID for the clone will be randomly
6683 generated.
6684
6685 The specified image file path can be absolute (full path) or
6686 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
6687 home directory</link>. If only a file name without any path is
6688 given, the <link to="ISystemProperties::defaultVDIFolder">
6689 default VDI folder</link> will be used as a path to the image
6690 file.
6691
6692 It is an error to use the object returned in the @a image
6693 parameter until the returned @a progress object reports success.
6694
6695 <note>In the current implementation, only non-differencing hard
6696 disks can be cloned.</note>
6697
6698 </desc>
6699
6700 <param name="filePath" type="wstring" dir="in">
6701 <desc>Path to a file where to store the cloned hard disk.</desc>
6702 </param>
6703 <param name="image" type="IVirtualDiskImage" dir="out">
6704 <desc>Cloned hard disk object.</desc>
6705 </param>
6706 <param name="progress" type="IProgress" dir="return">
6707 <desc>Progress object to track the operation completion.</desc>
6708 </param>
6709
6710 </method>
6711
6712 </interface>
6713
6714 <!--
6715 // IVirtualDiskImage
6716 /////////////////////////////////////////////////////////////////////////
6717 -->
6718
6719 <interface
6720 name="IVirtualDiskImage" extends="$unknown"
6721 uuid="a8265b5a-0d20-4a46-a02f-65693a4e8239"
6722 wsmap="managed"
6723 >
6724
6725 <desc>
6726 The IVirtualDiskImage interface represent a specific type of
6727 <link to="IHardDisk" /> that uses VDI image files.
6728
6729 The Virtual Disk Image (VDI) format is VirtualBox's native format for
6730 hard disk containers.
6731
6732 Objects that support this interface also support the
6733 <link to="IHardDisk"/> interface.
6734
6735 Hard disks using virtual disk images can be either opened using
6736 <link to="IVirtualBox::openHardDisk()"/> or created from
6737 scratch using <link to="IVirtualBox::createHardDisk()"/>.
6738
6739 When a new hard disk object is created from scratch, an image file for it
6740 is not automatically created. To do it, you need to specify a
6741 valid <link to="#filePath">file path</link>, and call
6742 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
6743 When it is done, the hard disk object can be registered by calling
6744 <link to="IVirtualBox::registerHardDisk()"/> and then
6745 <link to="IMachine::attachHardDisk()">attached</link> to
6746 virtual machines.
6747
6748 The <link to="IHardDisk::description">description</link> of the
6749 Virtual Disk Image is stored in the image file. For this reason,
6750 changing the value of this property requires the hard disk to be
6751 <link to="IHardDisk::accessible">accessible</link>. The description
6752 of a registered hard disk can be changed only if a virtual machine
6753 using it is not running.
6754
6755 </desc>
6756
6757 <attribute name="filePath" type="wstring">
6758 <desc>
6759
6760 Full file name of the virtual disk image of this hard disk. For
6761 newly created hard disk objects, this value is <tt>null</tt>.
6762
6763 When assigning a new path, it can be absolute (full path) or relative
6764 to the <link to="IVirtualBox::homeFolder"> VirtualBox home
6765 directory</link>. If only a file name without any path is given,
6766 the <link to="ISystemProperties::defaultVDIFolder"> default VDI
6767 folder</link> will be used as a path to the image file.
6768
6769 When reading this propery, a full path is always returned.
6770
6771 <note>
6772 This property cannot be changed when <link to="#created"/>
6773 returns <tt>true</tt>.
6774 </note>
6775
6776 </desc>
6777 </attribute>
6778
6779 <attribute name="created" type="boolean" readonly="yes">
6780 <desc>
6781
6782 Whether the virual disk image is created or not. For newly
6783 created hard disk objects or after a successful invocation of
6784 <link to="#deleteImage()"/>, this value is <tt>false</tt> until
6785 <link to="#createFixedImage()"/> or <link
6786 to="#createDynamicImage()"/> is called.
6787
6788 </desc>
6789 </attribute>
6790
6791 <method name="createDynamicImage">
6792
6793 <desc>
6794
6795 Starts creating a dymically expanding hard disk image in the
6796 background. The previous image associated with this object, if
6797 any, must be deleted using <link to="#deleteImage"/>, otherwise
6798 the operation will fail.
6799
6800 <note>After the returned progress object reports that the
6801 operation is complete, this hard disk object can be
6802 <link to="IVirtualBox::registerHardDisk()">registered</link>
6803 within this VirtualBox installation.</note>
6804
6805 </desc>
6806
6807 <param name="size" type="unsigned long long" dir="in">
6808 <desc>Maximum logical size of the hard disk in megabytes.</desc>
6809 </param>
6810 <param name="progress" type="IProgress" dir="return">
6811 <desc>Progress object to track the operation completion.</desc>
6812 </param>
6813
6814 </method>
6815
6816 <method name="createFixedImage">
6817 <desc>
6818
6819 Starts creating a fixed-size hard disk image in the background. The
6820 previous image, if any, must be deleted using
6821 <link to="#deleteImage"/>, otherwise the operation will fail.
6822
6823 <note>
6824 After the returned progress object reports that the
6825 operation is complete, this hard disk object can be
6826 <link to="IVirtualBox::registerHardDisk()">registered</link>
6827 within this VirtualBox installation.
6828 </note>
6829
6830 </desc>
6831
6832 <param name="size" type="unsigned long long" dir="in">
6833 <desc>Logical size of the hard disk in megabytes.</desc>
6834 </param>
6835 <param name="progress" type="IProgress" dir="return">
6836 <desc>Progress object to track the operation completion.</desc>
6837 </param>
6838
6839 </method>
6840
6841 <method name="deleteImage">
6842 <desc>
6843
6844 Deletes the existing hard disk image. The hard disk must not be
6845 registered within this VirtualBox installation, otherwise the
6846 operation will fail.
6847
6848 <note>
6849 After this operation succeeds, it will be impossible to
6850 register the hard disk until the image file is created
6851 again.
6852 </note>
6853
6854 <note>
6855 This operation is valid only for non-differencing hard disks, after
6856 they are unregistered using
6857 <link to="IVirtualBox::unregisterHardDisk()"/>.
6858 </note>
6859
6860 </desc>
6861 </method>
6862
6863 </interface>
6864
6865 <!--
6866 // IISCSIHardDisk
6867 /////////////////////////////////////////////////////////////////////////
6868 -->
6869
6870 <interface
6871 name="IISCSIHardDisk" extends="$unknown"
6872 uuid="003f6ca9-3257-4ef9-99c9-c66ce44576cb"
6873 wsmap="managed"
6874 >
6875
6876 <desc>
6877 THe IISCSIHardDisk interface represents a specific type of
6878 <link to="IHardDisk"/> that uses iSCSI.
6879
6880 The IISCSIHardDisk interface represents <link to="IHardDisk">virtual
6881 hard disks</link> that use the Internet SCSI (iSCSI) protocol to store
6882 hard disk data on remote machines.
6883
6884 Objects that support this interface also support the
6885 <link to="IHardDisk"/> interface.
6886
6887 iSCSI hard disks can be created using
6888 <link to="IVirtualBox::createHardDisk()"/>. When a new hard disk object
6889 is created, all its properties are uninitialized. After you assign some
6890 meaningful values to them, the hard disk object can be registered by
6891 calling <link to="IVirtualBox::registerHardDisk()"/> and
6892 then <link to="IMachine::attachHardDisk()">attached</link> to virtual
6893 machines.
6894
6895 The <link to="IHardDisk::description">description</link>
6896 of the iSCSI hard disk is stored in the VirtualBox
6897 configuration file, so it can be changed (at appropriate
6898 times) even when
6899 <link to="IHardDisk::accessible">accessible</link> returns
6900 <tt>false</tt>. However, the hard disk must not be
6901 attached to a running virtual machine.
6902
6903 <note>
6904 In the current imlementation, the type of all iSCSI hard disks
6905 is <link to="HardDiskType::Writethrough">Writethrough</link>
6906 and cannot be changed.
6907 </note>
6908
6909 </desc>
6910
6911 <attribute name="server" type="wstring">
6912 <desc>
6913
6914 iSCSI Server name (either a host name or an IP address). For
6915 newly created hard disk objects, this value is <tt>null</tt>.
6916
6917 </desc>
6918 </attribute>
6919
6920 <attribute name="port" type="unsigned short">
6921 <desc>
6922
6923 iSCSI Server port. For newly created hard disk objects, this
6924 value is <tt>0</tt>, which means the default port.
6925
6926 </desc>
6927 </attribute>
6928
6929 <attribute name="target" type="wstring">
6930 <desc>
6931
6932 iSCSI target name. For newly created hard disk objects, this
6933 value is <tt>null</tt>.
6934
6935 </desc>
6936 </attribute>
6937
6938 <attribute name="lun" type="unsigned long long">
6939 <desc>
6940
6941 Logical unit number for this iSCSI disk. For newly created hard
6942 disk objects, this value is <tt>0</tt>.
6943
6944 </desc>
6945 </attribute>
6946
6947 <attribute name="userName" type="wstring">
6948 <desc>
6949
6950 User name for accessing this iSCSI disk. For newly created hard
6951 disk objects, this value is <tt>null</tt>.
6952
6953 </desc>
6954 </attribute>
6955
6956 <attribute name="password" type="wstring">
6957 <desc>
6958
6959 User password for accessing this iSCSI disk. For newly created
6960 hard disk objects, this value is <tt>null</tt>.
6961
6962 </desc>
6963 </attribute>
6964
6965 </interface>
6966
6967 <!--
6968 // IVMDKImage
6969 /////////////////////////////////////////////////////////////////////////
6970 -->
6971
6972 <interface
6973 name="IVMDKImage" extends="$unknown"
6974 uuid="178398f5-8559-4fee-979e-420af5b53eef"
6975 wsmap="managed"
6976 >
6977 <desc>
6978 The IVMDKImage interface represents a specific type of
6979 <link to="IHardDisk"/> that uses VMDK image files.
6980
6981 The Virtual Machine Disk (VMDK) format is the industry standard format
6982 for virtual hard disk image files, which VirtualBox supports besides its
6983 own native VDI format.
6984
6985 Objects that support this interface also support the
6986 <link to="IHardDisk"/> interface.
6987
6988 Hard disks using VMDK images can be either opened using
6989 <link to="IVirtualBox::openHardDisk()"/> or created from
6990 scratch using <link to="IVirtualBox::createHardDisk()"/>.
6991
6992 When a new hard disk object is created from scratch, an image file for it
6993 is not automatically created. To do it, you need to specify a
6994 valid <link to="#filePath">file path</link>, and call
6995 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
6996 When it is done, the hard disk object can be registered by calling
6997 <link to="IVirtualBox::registerHardDisk()"/> and then
6998 <link to="IMachine::attachHardDisk()">attached</link> to
6999 virtual machines.
7000
7001 The <link to="IHardDisk::description">description</link>
7002 of the VMDK hard disk is stored in the VirtualBox
7003 configuration file, so it can be changed (at appropriate
7004 times) even when
7005 <link to="IHardDisk::accessible">accessible</link> returns
7006 <tt>false</tt>. However, the hard disk must not be
7007 attached to a running virtual machine.
7008
7009 <note>
7010 In the current imlementation, the type of all VMDK hard disks
7011 is <link to="HardDiskType::Writethrough">Writethrough</link> and cannot
7012 be changed.
7013 </note>
7014
7015 </desc>
7016
7017 <attribute name="filePath" type="wstring">
7018 <desc>
7019
7020 Full file name of the VMDK image of this hard disk. For
7021 newly created hard disk objects, this value is <tt>null</tt>.
7022
7023 When assigning a new path, it can be absolute (full path) or relative
7024 to the <link to="IVirtualBox::homeFolder"> VirtualBox home
7025 directory</link>. If only a file name without any path is given,
7026 the <link to="ISystemProperties::defaultVDIFolder"> default VDI
7027 folder</link> will be used as a path to the image file.
7028
7029 When reading this propery, a full path is always returned.
7030
7031 <note>
7032 This property cannot be changed when <link to="#created"/>
7033 returns <tt>true</tt>.
7034 </note>
7035
7036 </desc>
7037 </attribute>
7038
7039 <attribute name="created" type="boolean" readonly="yes">
7040 <desc>
7041
7042 Whether the virual disk image is created or not. For newly created
7043 hard disk objects or after a successful invocation of
7044 <link to="#deleteImage()"/>, this value is <tt>false</tt> until
7045 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
7046 is called.
7047
7048 </desc>
7049 </attribute>
7050
7051 <method name="createDynamicImage">
7052
7053 <desc>
7054
7055 Starts creating a dymically expanding hard disk image in the
7056 background. The previous image associated with this object, if
7057 any, must be deleted using <link to="#deleteImage"/>, otherwise
7058 the operation will fail.
7059
7060 <note>
7061 After the returned progress object reports that the
7062 operation is complete, this hard disk object can be
7063 <link to="IVirtualBox::registerHardDisk()">registered</link> within
7064 this VirtualBox installation.
7065 </note>
7066
7067 </desc>
7068
7069 <param name="size" type="unsigned long long" dir="in">
7070 <desc>Maximum logical size of the hard disk in megabytes.</desc>
7071 </param>
7072 <param name="progress" type="IProgress" dir="return">
7073 <desc>Progress object to track the operation completion.</desc>
7074 </param>
7075
7076 </method>
7077
7078 <method name="createFixedImage">
7079 <desc>
7080
7081 Starts creating a fixed-size hard disk image in the background. The
7082 previous image, if any, must be deleted using
7083 <link to="#deleteImage"/>, otherwise the operation will fail.
7084
7085 <note>
7086 After the returned progress object reports that the
7087 operation is complete, this hard disk object can be
7088 <link to="IVirtualBox::registerHardDisk()">registered</link> within
7089 this VirtualBox installation.
7090 </note>
7091
7092 </desc>
7093
7094 <param name="size" type="unsigned long long" dir="in">
7095 <desc>Logical size of the hard disk in megabytes.</desc>
7096 </param>
7097 <param name="progress" type="IProgress" dir="return">
7098 <desc>Progress object to track the operation completion.</desc>
7099 </param>
7100
7101 </method>
7102
7103 <method name="deleteImage">
7104 <desc>
7105
7106 Deletes the existing hard disk image. The hard disk must not be
7107 registered within this VirtualBox installation, otherwise the
7108 operation will fail.
7109
7110 <note>
7111 After this operation succeeds, it will be impossible to register the
7112 hard disk until the image file is created again.
7113 </note>
7114
7115 <note>
7116 This operation is valid only for non-differencing hard disks, after
7117 they are unregistered using
7118 <link to="IVirtualBox::unregisterHardDisk()"/>.
7119 </note>
7120
7121 </desc>
7122 </method>
7123
7124 </interface>
7125
7126 <!--
7127 // ICustomHardDisk
7128 /////////////////////////////////////////////////////////////////////////
7129 -->
7130
7131 <interface
7132 name="ICustomHardDisk" extends="$unknown"
7133 uuid="a7b0236d-3ff4-47c0-a4aa-ddc4ddc1141a"
7134 wsmap="managed"
7135 >
7136 <desc>
7137 The ICustomHardDisk interface represents a specific type of
7138 <link to="IHardDisk" /> that is supported through a third-party plugin.
7139
7140 This interface allows to add support for custom hard disk formats to
7141 VirtualBox.
7142
7143 Objects that support this interface also support the
7144 <link to="IHardDisk"/> interface.
7145
7146 Hard disks using custom hard disk formats can be either opened using
7147 <link to="IVirtualBox::openHardDisk()"/> or created from scratch using
7148 <link to="IVirtualBox::createHardDisk()"/>.
7149
7150 When a new hard disk object is created from scratch, an image file for
7151 it is not automatically created. To do it, you need to specify a
7152 valid <link to="#location">location</link>, and call
7153 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
7154 When it is done, the hard disk object can be registered by calling
7155 <link to="IVirtualBox::registerHardDisk()"/> and then
7156 <link to="IMachine::attachHardDisk()">attached</link> to
7157 virtual machines.
7158
7159 The <link to="IHardDisk::description">description</link>
7160 of the hard disk is stored in the VirtualBox
7161 configuration file, so it can be changed (at appropriate
7162 times) even when
7163 <link to="IHardDisk::accessible">accessible</link> returns
7164 <tt>false</tt>. However, the hard disk must not be
7165 attached to a running virtual machine.
7166
7167 </desc>
7168
7169 <attribute name="location" type="wstring">
7170 <desc>
7171
7172 Location of this custom hard disk. For
7173 newly created hard disk objects, this value is <tt>null</tt>.
7174
7175 The format of the location string is plugin-dependent. In case if the
7176 plugin uses a regular file in the local file system to store hard disk
7177 data, then the location is a file path and the following rules apply:
7178 <ul>
7179 <li>
7180 when assigning a new path, it must be absolute (full path) or
7181 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
7182 home directory</link>. If only a file name without any path is
7183 given, the <link to="ISystemProperties::defaultVDIFolder"> default
7184 VDI folder</link> will be used as a path to the image file.
7185 </li>
7186 <li>
7187 When reading this propery, a full path is always returned.
7188 </li>
7189 </ul>
7190
7191 <note>
7192 This property cannot be changed when <link to="#created"/>
7193 returns <tt>true</tt>.
7194 </note>
7195
7196 </desc>
7197 </attribute>
7198
7199 <attribute name="format" type="wstring" readonly="yes">
7200 <desc>
7201
7202 The plugin name of the image file.
7203
7204 </desc>
7205 </attribute>
7206
7207 <attribute name="created" type="boolean" readonly="yes">
7208 <desc>
7209
7210 Whether the virual disk image is created or not. For newly created
7211 hard disk objects or after a successful invocation of
7212 <link to="#deleteImage()"/>, this value is <tt>false</tt> until
7213 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
7214 is called.
7215
7216 </desc>
7217 </attribute>
7218
7219 <method name="createDynamicImage">
7220
7221 <desc>
7222
7223 Starts creating a dymically expanding hard disk image in the
7224 background. The previous image associated with this object, if
7225 any, must be deleted using <link to="#deleteImage"/>, otherwise
7226 the operation will fail.
7227
7228 <note>
7229 After the returned progress object reports that the
7230 operation is complete, this hard disk object can be
7231 <link to="IVirtualBox::registerHardDisk()">registered</link> within
7232 this VirtualBox installation.
7233 </note>
7234
7235 </desc>
7236
7237 <param name="size" type="unsigned long long" dir="in">
7238 <desc>Maximum logical size of the hard disk in megabytes.</desc>
7239 </param>
7240 <param name="progress" type="IProgress" dir="return">
7241 <desc>Progress object to track the operation completion.</desc>
7242 </param>
7243
7244 </method>
7245
7246 <method name="createFixedImage">
7247 <desc>
7248
7249 Starts creating a fixed-size hard disk image in the background. The
7250 previous image, if any, must be deleted using
7251 <link to="#deleteImage"/>, otherwise the operation will fail.
7252
7253 <note>
7254 After the returned progress object reports that the
7255 operation is complete, this hard disk object can be
7256 <link to="IVirtualBox::registerHardDisk()">registered</link> within
7257 this VirtualBox installation.
7258 </note>
7259
7260 </desc>
7261
7262 <param name="size" type="unsigned long long" dir="in">
7263 <desc>Logical size of the hard disk in megabytes.</desc>
7264 </param>
7265 <param name="progress" type="IProgress" dir="return">
7266 <desc>Progress object to track the operation completion.</desc>
7267 </param>
7268
7269 </method>
7270
7271 <method name="deleteImage">
7272 <desc>
7273
7274 Deletes the existing hard disk image. The hard disk must not be
7275 registered within this VirtualBox installation, otherwise the
7276 operation will fail.
7277
7278 <note>
7279 After this operation succeeds, it will be impossible to register the
7280 hard disk until the image file is created again.
7281 </note>
7282
7283 <note>
7284 This operation is valid only for non-differencing hard disks, after
7285 they are unregistered using
7286 <link to="IVirtualBox::unregisterHardDisk()"/>.
7287 </note>
7288
7289 </desc>
7290 </method>
7291
7292 </interface>
7293
7294 <!--
7295 // IVHDImage
7296 /////////////////////////////////////////////////////////////////////////
7297 -->
7298
7299 <interface
7300 name="IVHDImage" extends="$unknown"
7301 uuid="163b88c3-7552-424a-8205-daf17a004747"
7302 wsmap="managed"
7303 >
7304 <desc>
7305
7306 The IVHDImage interface represents <link to="IHardDisk">virtual hard
7307 disks</link> that use Virtual PC Virtual Machine Disk image files to store
7308 hard disk data.
7309
7310 Hard disks using VHD images can be either opened using
7311 <link to="IVirtualBox::openHardDisk()"/> or created from
7312 scratch using <link to="IVirtualBox::createHardDisk()"/>.
7313
7314 Objects that support this interface also support the
7315 <link to="IHardDisk"/> interface.
7316
7317 When a new hard disk object is created from scatch, an image file for it
7318 is not automatically created. To do it, you need to specify a
7319 valid <link to="#filePath">file path</link>, and call
7320 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
7321 When it is done, the hard disk object can be registered by calling
7322 <link to="IVirtualBox::registerHardDisk()"/> and then
7323 <link to="IMachine::attachHardDisk()">attached</link> to
7324 virtual machines.
7325
7326 The <link to="IHardDisk::description">description</link>
7327 of the VHD hard disk is stored in the VirtualBox
7328 configuration file, so it can be changed (at appropriate
7329 times) even when
7330 <link to="IHardDisk::accessible">accessible</link> returns
7331 <tt>false</tt>. However, the hard disk must not be
7332 attached to a running virtual machine.
7333
7334 <note>
7335 In the current imlementation, the type of all VHD hard disks
7336 is <link to="HardDiskType::Writethrough">Writethrough</link> and cannot
7337 be changed.
7338 </note>
7339
7340 </desc>
7341
7342 <attribute name="filePath" type="wstring">
7343 <desc>
7344
7345 Full file name of the VHD image of this hard disk. For
7346 newly created hard disk objects, this value is <tt>null</tt>.
7347
7348 When assigning a new path, it can be absolute (full path) or relative
7349 to the <link to="IVirtualBox::homeFolder"> VirtualBox home
7350 directory</link>. If only a file name without any path is given,
7351 the <link to="ISystemProperties::defaultVDIFolder"> default VDI
7352 folder</link> will be used as a path to the image file.
7353
7354 When reading this propery, a full path is always returned.
7355
7356 <note>
7357 This property cannot be changed when <link to="#created"/>
7358 returns <tt>true</tt>. In this case, the specified file name can be
7359 absolute (full path) or relative to
7360 the <link to="IVirtualBox::homeFolder"> VirtualBox home
7361 directory</link>. If only a file name without any path is given,
7362 the <link to="ISystemProperties::defaultVDIFolder"> default VDI
7363 folder</link> will be used as a path to the image file.
7364 </note>
7365
7366 </desc>
7367 </attribute>
7368
7369 <attribute name="created" type="boolean" readonly="yes">
7370 <desc>
7371
7372 Whether the virual disk image is created or not. For newly created
7373 hard disk objects or after a successful invocation of
7374 <link to="#deleteImage()"/>, this value is <tt>false</tt> until
7375 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
7376 is called.
7377
7378 </desc>
7379 </attribute>
7380
7381 <method name="createDynamicImage">
7382
7383 <desc>
7384
7385 Starts creating a dymically expanding hard disk image in the
7386 background. The previous image associated with this object, if
7387 any, must be deleted using <link to="#deleteImage"/>, otherwise
7388 the operation will fail.
7389
7390 <note>
7391 After the returned progress object reports that the
7392 operation is complete, this hard disk object can be
7393 <link to="IVirtualBox::registerHardDisk()">registered</link> within
7394 this VirtualBox installation.
7395 </note>
7396
7397 </desc>
7398
7399 <param name="size" type="unsigned long long" dir="in">
7400 <desc>Maximum logical size of the hard disk in megabytes.</desc>
7401 </param>
7402 <param name="progress" type="IProgress" dir="return">
7403 <desc>Progress object to track the operation completion.</desc>
7404 </param>
7405
7406 </method>
7407
7408 <method name="createFixedImage">
7409 <desc>
7410
7411 Starts creating a fixed-size hard disk image in the background. The
7412 previous image, if any, must be deleted using
7413 <link to="#deleteImage"/>, otherwise the operation will fail.
7414
7415 <note>
7416 After the returned progress object reports that the
7417 operation is complete, this hard disk object can be
7418 <link to="IVirtualBox::registerHardDisk()">registered</link> within
7419 this VirtualBox installation.
7420 </note>
7421
7422 </desc>
7423
7424 <param name="size" type="unsigned long long" dir="in">
7425 <desc>Logical size of the hard disk in megabytes.</desc>
7426 </param>
7427 <param name="progress" type="IProgress" dir="return">
7428 <desc>Progress object to track the operation completion.</desc>
7429 </param>
7430
7431 </method>
7432
7433 <method name="deleteImage">
7434 <desc>
7435
7436 Deletes the existing hard disk image. The hard disk must not be
7437 registered within this VirtualBox installation, otherwise the
7438 operation will fail.
7439
7440 <note>
7441 After this operation succeeds, it will be impossible to register the
7442 hard disk until the image file is created again.
7443 </note>
7444
7445 <note>
7446 This operation is valid only for non-differencing hard disks, after
7447 they are unregistered using
7448 <link to="IVirtualBox::unregisterHardDisk()"/>.
7449 </note>
7450
7451 </desc>
7452 </method>
7453
7454 </interface>
7455
7456 <!--
7457 // IDVDImage
7458 /////////////////////////////////////////////////////////////////////////
7459 -->
7460
7461 <enumerator
7462 name="IDVDImageEnumerator" type="IDVDImage"
7463 uuid="9BE77C8D-E1BE-4bf2-A67B-B4DD3D2B0F28"
7464 />
7465
7466 <collection
7467 name="IDVDImageCollection" type="IDVDImage"
7468 enumerator="IDVDImageEnumerator"
7469 uuid="AE7053FA-ADD2-4ea4-AFCF-24D5F8DDED64"
7470 readonly="yes"
7471 >
7472 <method name="findByPath">
7473 <desc>
7474 Searches this collection for a DVD image with the given disk path.
7475 <note>
7476 The method returns an error if the given name does not
7477 correspond to any DVD image in the collection.
7478 </note>
7479 </desc>
7480 <param name="path" type="wstring" dir="in">
7481 <desc>Name of the DVD image's file system location.</desc>
7482 </param>
7483 <param name="image" type="IDVDImage" dir="return">
7484 <desc>Found DVD image object</desc>
7485 </param>
7486 </method>
7487 </collection>
7488
7489 <interface
7490 name="IDVDImage" extends="$unknown"
7491 uuid="140FFF03-E479-4194-8562-ABC4F8171009"
7492 wsmap="managed"
7493 >
7494 <desc>
7495
7496 The IDVDImage interface represents a file containing the image
7497 of the DVD or CD disk.
7498
7499 <h3>Image Accessibility</h3>
7500
7501 The <link to="#accessible"/> attribute of the image object
7502 defines the accessibility state of the image file. If the
7503 value of this attribute is <tt>false</tt> then some image
7504 attributes may contain invalid or outdated values (for example, the
7505 the image file size) until a new accessibility
7506 check is done that returns <tt>true</tt>.
7507
7508 <note>
7509 Because of the possible slowness of the accessibility check,
7510 it is not implicitly performed upon the VirtualBox server startup
7511 (to prevent the application freeze). In partcular, this means that
7512 if you try to read image properties that depend on the
7513 accessibility state without first reading the value of the
7514 <link to="#accessible"/> attribute and ensuring it's value is
7515 <tt>true</tt>, you will get wrong (zero) values.
7516 </note>
7517
7518 </desc>
7519 <attribute name="id" type="uuid" readonly="yes">
7520 <desc>UUID of the CD/DVD image.</desc>
7521 </attribute>
7522
7523 <attribute name="filePath" type="wstring" readonly="yes">
7524 <desc>Full file name of the CD/DVD image.</desc>
7525 </attribute>
7526
7527 <attribute name="accessible" type="boolean" readonly="yes">
7528 <desc>
7529
7530 Whether the CD/DVD image is currently accessible or not.
7531 The image, for example, can be unaccessible if it is placed
7532 on a network share that is not available by the time
7533 this property is read.
7534
7535 The accessibility check is performed automatically every time
7536 this attribute is read. You should keep it in mind that this check
7537 may be slow and can block the calling thread for a long time (for
7538 example, if the network share where the image is located is down).
7539
7540 The following attributes of the image object are considered
7541 to be invalid when this attribute is <tt>false</tt>:
7542 <ul>
7543 <li><link to="#size"/></li>
7544 </ul>
7545
7546 </desc>
7547 </attribute>
7548
7549 <attribute name="size" type="unsigned long long" readonly="yes">
7550 <desc>Size of the ISO image in bytes.</desc>
7551 </attribute>
7552
7553 </interface>
7554
7555
7556 <!--
7557 // IDVDDrive
7558 /////////////////////////////////////////////////////////////////////////
7559 -->
7560
7561 <interface
7562 name="IDVDDrive" extends="$unknown"
7563 uuid="d9bd101a-8079-4fb9-bad1-31bf32482b75"
7564 wsmap="managed"
7565 >
7566 <desc>
7567 The IDVDDrive interface represents the virtual CD/DVD drive of the
7568 virtual machine. Used in <link to="IMachine::DVDDrive"/>.
7569 </desc>
7570 <attribute name="state" type="DriveState" readonly="yes">
7571 <desc>Current drive state.</desc>
7572 </attribute>
7573
7574 <attribute name="passthrough" type="boolean">
7575 <desc>
7576 When a host drive is mounted and passthrough is enabled
7577 the guest will be able to directly send SCSI commands to
7578 the host drive. This enables the guest to use CD/DVD writers
7579 but is potentially dangerous.
7580 </desc>
7581 </attribute>
7582
7583 <method name="mountImage">
7584 <desc>Mounts the specified image.</desc>
7585 <param name="imageId" type="uuid" dir="in"/>
7586 </method>
7587
7588 <method name="captureHostDrive">
7589 <desc>Captures the specified host drive.</desc>
7590 <param name="drive" type="IHostDVDDrive" dir="in"/>
7591 </method>
7592
7593 <method name="unmount">
7594 <desc>Unmounts the currently mounted image/device.</desc>
7595 </method>
7596
7597 <method name="getImage">
7598 <desc>Gets the currently mounted image ID.</desc>
7599 <param name="image" type="IDVDImage" dir="return"/>
7600 </method>
7601
7602 <method name="getHostDrive">
7603 <desc>Gets the currently mounted image ID.</desc>
7604 <param name="drive" type="IHostDVDDrive" dir="return"/>
7605 </method>
7606
7607 </interface>
7608
7609 <!--
7610 // IFloppyImage
7611 /////////////////////////////////////////////////////////////////////////
7612 -->
7613
7614 <enumerator
7615 name="IFloppyImageEnumerator" type="IFloppyImage"
7616 uuid="902C4089-76B7-41f1-91E8-49A261A28A2C"
7617 />
7618
7619 <collection
7620 name="IFloppyImageCollection" type="IFloppyImage"
7621 enumerator="IFloppyImageEnumerator"
7622 uuid="327A8928-8572-446e-AD9A-18FE30E81F3F"
7623 readonly="yes">
7624 <method name="findByPath">
7625 <desc>
7626 Searches this collection for a floppy image with the given disk path.
7627 <note>
7628 The method returns an error if the given name does not
7629 correspond to any floppy image in the collection.
7630 </note>
7631 </desc>
7632 <param name="path" type="wstring" dir="in">
7633 <desc>Name of the floppy image's file system location.</desc>
7634 </param>
7635 <param name="image" type="IFloppyImage" dir="return">
7636 <desc>Found Floppy image object</desc>
7637 </param>
7638 </method>
7639 </collection>
7640
7641 <interface
7642 name="IFloppyImage" extends="$unknown"
7643 uuid="CC696755-EA98-4ffe-9DC5-C003047034AB"
7644 wsmap="managed"
7645 >
7646 <desc>
7647
7648 The IFloppyImage interface represents a file containing the image
7649 of a floppy disk.
7650
7651 <h3>Image Accessibility</h3>
7652
7653 The <link to="#accessible"/> attribute of the image object
7654 defines the accessibility state of the image file. If the
7655 value of this attribute is <tt>false</tt> then some image
7656 attributes may contain invalid or outdated values (for example, the
7657 the image file size) until a new accessibility
7658 check is done that returns <tt>true</tt>.
7659
7660 <note>
7661 Because of the possible slowness of the accessibility check,
7662 it is not implicitly performed upon the VirtualBox server startup
7663 (to prevent the application freeze). In partcular, this means that
7664 if you try to read image properties that depend on the
7665 accessibility state without first reading the value of the
7666 <link to="#accessible"/> attribute and ensuring it's value is
7667 <tt>true</tt>, you will get wrong (zero) values.
7668 </note>
7669
7670 </desc>
7671 <attribute name="id" type="uuid" readonly="yes">
7672 <desc>UUID of the floppy image.</desc>
7673 </attribute>
7674
7675 <attribute name="filePath" type="wstring" readonly="yes">
7676 <desc>Full file name of the floppy image.</desc>
7677 </attribute>
7678
7679 <attribute name="accessible" type="boolean" readonly="yes">
7680 <desc>
7681
7682 Whether the floppy image is currently accessible or not.
7683 The image, for example, can be unaccessible if it is placed
7684 on a network share that is not available by the time
7685 this property is read.
7686
7687 The accessibility check is performed automatically every time
7688 this attribute is read. You should keep it in mind that this check
7689 may be slow and can block the calling thread for a long time (for
7690 example, if the network share where the image is located is down).
7691
7692 The following attributes of the image object are considered
7693 to be invalid when this attribute is <tt>false</tt>:
7694 <ul>
7695 <li><link to="#size"/></li>
7696 </ul>
7697
7698 </desc>
7699 </attribute>
7700
7701 <attribute name="size" type="unsigned long" readonly="yes">
7702 <desc>Size of the floppy image in bytes.</desc>
7703 </attribute>
7704
7705 </interface>
7706
7707
7708 <!--
7709 // IFloppyDrive
7710 /////////////////////////////////////////////////////////////////////////
7711 -->
7712
7713 <interface
7714 name="IFloppyDrive" extends="$unknown"
7715 uuid="E9318F71-78D2-4b00-863C-B7CB0030A2D9"
7716 wsmap="managed"
7717 >
7718 <desc>
7719 The IFloppyDrive interface represents the virtual floppy drive of the
7720 virtual machine. Used in <link to="IMachine::FloppyDrive" />.
7721 </desc>
7722
7723 <attribute name="enabled" type="boolean">
7724 <desc>
7725 Flag whether the floppy drive is enabled. If it is disabled,
7726 the floppy drive will not be reported to the guest.
7727 </desc>
7728 </attribute>
7729
7730 <attribute name="state" type="DriveState" readonly="yes">
7731 <desc>Current drive state.</desc>
7732 </attribute>
7733
7734 <method name="mountImage">
7735 <desc>Mounts the specified image.</desc>
7736 <param name="imageId" type="uuid" dir="in"/>
7737 </method>
7738
7739 <method name="captureHostDrive">
7740 <desc>Captures the specified host drive.</desc>
7741 <param name="drive" type="IHostFloppyDrive" dir="in"/>
7742 </method>
7743
7744 <method name="unmount">
7745 <desc>Unmounts the currently mounted image/device.</desc>
7746 </method>
7747
7748 <method name="getImage">
7749 <desc>Gets the currently mounted image ID.</desc>
7750 <param name="image" type="IFloppyImage" dir="return"/>
7751 </method>
7752
7753 <method name="getHostDrive">
7754 <desc>Gets the currently mounted image ID.</desc>
7755 <param name="drive" type="IHostFloppyDrive" dir="return"/>
7756 </method>
7757
7758 </interface>
7759
7760
7761 <!--
7762 // IKeyboard
7763 /////////////////////////////////////////////////////////////////////////
7764 -->
7765
7766 <interface
7767 name="IKeyboard" extends="$unknown"
7768 uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
7769 wsmap="managed"
7770 >
7771 <desc>
7772 The IKeyboard interface represents the virtual machine's keyboard. Used
7773 in <link to="IConsole::keyboard"/>.
7774
7775 Through this interface, the virtual machine's virtual keyboard can be controlled. One
7776 can send keystrokes to the virtual machine and send the Ctrl-Alt-Del sequence to it.
7777 </desc>
7778 <method name="putScancode">
7779 <desc>Sends a scancode to the keyboard.</desc>
7780 <param name="scancode" type="long" dir="in"/>
7781 </method>
7782
7783 <method name="putScancodes">
7784 <desc>Sends an array of scancode to the keyboard.</desc>
7785 <param name="scancodes" type="long" dir="in" safearray="yes"/>
7786 <param name="codesStored" type="unsigned long" dir="return"/>
7787 </method>
7788
7789 <method name="putCAD">
7790 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard.</desc>
7791 </method>
7792
7793 </interface>
7794
7795
7796 <!--
7797 // IMouse
7798 /////////////////////////////////////////////////////////////////////////
7799 -->
7800
7801 <enum
7802 name="MouseButtonState"
7803 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
7804 >
7805 <desc>
7806 Mouse button state.
7807 </desc>
7808
7809 <const name="LeftButton" value="0x01"/>
7810 <const name="RightButton" value="0x02"/>
7811 <const name="MiddleButton" value="0x04"/>
7812 <const name="WheelUp" value="0x08"/>
7813 <const name="WheelDown" value="0x10"/>
7814 <const name="MouseStateMask" value="0x1F"/>
7815 </enum>
7816
7817 <interface
7818 name="IMouse" extends="$unknown"
7819 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
7820 wsmap="managed"
7821 >
7822 <desc>
7823 The IMouse interface represents the virtual machine's mouse. Used in
7824 <link to="IConsole::mouse"/>.
7825
7826 Through this interface, the virtual machine's virtual mouse can be
7827 controlled.
7828 </desc>
7829
7830 <attribute name="absoluteSupported" type="boolean" readonly="yes">
7831 <desc>
7832 Whether the guest OS supports absolute mouse pointer positioning
7833 or not.
7834 <note>
7835 VirtualBox Guest Tools need to be installed to the guest OS
7836 in order to enable absolute mouse positioning support.
7837 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
7838 callback to be instantly informed about changes of this attribute
7839 during virtual machine execution.
7840 </note>
7841 <see><link to="#putMouseEventAbsolute"/></see>
7842 </desc>
7843 </attribute>
7844
7845 <method name="putMouseEvent">
7846 <desc>
7847 Initiates a mouse event using relative pointer movements
7848 along x and y axis.
7849 </desc>
7850
7851 <param name="dx" type="long" dir="in">
7852 <desc>
7853 Amout of pixels the mouse should move to the right.
7854 Negative values move the mouse to the left.
7855 </desc>
7856 </param>
7857 <param name="dy" type="long" dir="in">
7858 <desc>
7859 Amout of pixels the mouse should move downwards.
7860 Negative values move the mouse upwards.
7861 </desc>
7862 </param>
7863 <param name="dz" type="long" dir="in">
7864 <desc>
7865 Amount of mouse wheel moves.
7866 Positive values describe clockwize wheel rotations,
7867 negative values describe counterclockwise rotations.
7868 </desc>
7869 </param>
7870 <param name="buttonState" type="long" dir="in">
7871 <desc>
7872 The current state of mouse buttons. Every bit represents
7873 a mouse button as follows:
7874 <table>
7875 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
7876 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
7877 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
7878 </table>
7879 A value of <tt>1</tt> means the corresponding button is pressed.
7880 otherwise it is released.
7881 </desc>
7882 </param>
7883 </method>
7884
7885 <method name="putMouseEventAbsolute">
7886 <desc>
7887 Positions the mouse pointer using absolute x and y coordinates.
7888 These coordinates are expressed in pixels and
7889 start from <tt>[1,1]</tt> which corresponds to the top left
7890 corner of the virtual display.
7891
7892 <note>
7893 This method will have effect only if absolute mouse
7894 positioning is supported by the guest OS.
7895 </note>
7896
7897 <see><link to="#absoluteSupported"/></see>
7898 </desc>
7899
7900 <param name="x" type="long" dir="in">
7901 <desc>
7902 X coordinate of the pointer in pixels, starting from <tt>1</tt>.
7903 </desc>
7904 </param>
7905 <param name="y" type="long" dir="in">
7906 <desc>
7907 Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
7908 </desc>
7909 </param>
7910 <param name="dz" type="long" dir="in">
7911 <desc>
7912 Amout of mouse wheel moves.
7913 Positive values describe clockwize wheel rotations,
7914 negative values describe counterclockwise rotations.
7915 </desc>
7916 </param>
7917 <param name="buttonState" type="long" dir="in">
7918 <desc>
7919 The current state of mouse buttons. Every bit represents
7920 a mouse button as follows:
7921 <table>
7922 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
7923 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
7924 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
7925 </table>
7926 A value of <tt>1</tt> means the corresponding button is pressed.
7927 otherwise it is released.
7928 </desc>
7929 </param>
7930 </method>
7931
7932 </interface>
7933
7934 <!--
7935 // IDisplay
7936 /////////////////////////////////////////////////////////////////////////
7937 -->
7938
7939 <enum
7940 name="FramebufferAccelerationOperation"
7941 uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
7942 >
7943 <desc>
7944 Framebuffer acceleration operation.
7945 </desc>
7946
7947 <const name="SolidFillAcceleration" value="1"/>
7948 <const name="ScreenCopyAcceleration" value="2"/>
7949 </enum>
7950
7951 <enum
7952 name="FramebufferPixelFormat"
7953 uuid="6b27d1fc-4f2c-4e9c-a166-01d06540305d"
7954 >
7955 <desc>
7956 Format of the video memory buffer. Constants represented by this enum can
7957 be used to test for particular values of <link
7958 to="IFramebuffer::pixelFormat"/>. See also <link
7959 to="IFramebuffer::requestResize()"/>.
7960
7961 See also www.fourcc.org for more informantion about FOURCC pixel formats.
7962 </desc>
7963
7964 <const name="Opaque" value="0xFFFFFFFF">
7965 <desc>
7966 Unknown buffer format. The user may not assume any particular
7967 format of the buffer.
7968 </desc>
7969 </const>
7970 <const name="FOURCC_RGB" value="0x32424752">
7971 <desc>
7972 Basic RGB format. <link to="IFramebuffer::bitsPerPixel"/> determines
7973 the bit layout.
7974 </desc>
7975 </const>
7976 </enum>
7977
7978 <interface
7979 name="IFramebuffer" extends="$unknown"
7980 uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
7981 wsmap="suppress"
7982 >
7983 <attribute name="address" type="octet" mod="ptr" readonly="yes">
7984 <desc>Address of the start byte of the framebuffer.</desc>
7985 </attribute>
7986
7987 <attribute name="width" type="unsigned long" readonly="yes">
7988 <desc>Framebuffer width, in pixels.</desc>
7989 </attribute>
7990
7991 <attribute name="height" type="unsigned long" readonly="yes">
7992 <desc>Framebuffer height, in pixels.</desc>
7993 </attribute>
7994
7995 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
7996 <desc>
7997 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
7998 to="FramebufferPixelFormat::FOURCC_RGB">FOURCC_RGB</link>, valid values
7999 are: 8, 15, 16, 24 and 32.
8000 </desc>
8001 </attribute>
8002
8003 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
8004 <desc>
8005 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
8006 to="FramebufferPixelFormat::FOURCC_RGB">FOURCC_RGB</link>, the
8007 size of the scan line must be aligned to 32 bits.
8008 </desc>
8009 </attribute>
8010
8011 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
8012 <desc>
8013 Framebuffer pixel format. It's either one of the values defined by <link
8014 to="FramebufferPixelFormat"/> or a raw FOURCC code.
8015 <note>
8016 This attribute must never return <link
8017 to="PixelFormat::Opaque"/> -- the format of the buffer
8018 <link to="#address"/> points to must be always known.
8019 </note>
8020 </desc>
8021 </attribute>
8022
8023 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
8024 <desc>
8025 Defines whether this framebuffer uses the virtual video card's memory
8026 buffer (guest VRAM) directly or not. See <link
8027 to="IFramebuffer::requestResize()"/> for more information.
8028 </desc>
8029 </attribute>
8030
8031 <attribute name="heightReduction" type="unsigned long" readonly="yes">
8032 <desc>
8033 Hint from the framebuffer about how much of the standard
8034 screen height it wants to use for itself. This information is
8035 exposed to the guest through the VESA BIOS and VMMDev interface
8036 so that it can use it for determining its video mode table. It
8037 is not guaranteed that the guest respects the value.
8038 </desc>
8039 </attribute>
8040
8041 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
8042 <desc>
8043 An alpha-blended overlay which is superposed over the framebuffer.
8044 The initial purpose is to allow the display of icons providing
8045 information about the VM state, including disk activity, in front
8046 ends which do not have other means of doing that. The overlay is
8047 designed to controlled exclusively by IDisplay. It has no locking
8048 of its own, and any changes made to it are not guaranteed to be
8049 visible until the affected portion of IFramebuffer is updated. The
8050 overlay can be created lazily the first time it is requested. This
8051 attribute can also return NULL to signal that the overlay is not
8052 implemented.
8053 </desc>
8054 </attribute>
8055
8056 <attribute name="winId" type="unsigned long long" readonly="yes">
8057 <desc>
8058 Platform-dependent identifier of the window where context of this
8059 framebuffer is drawn, or zero if there's no such window.
8060 </desc>
8061 </attribute>
8062
8063 <method name="lock">
8064 <desc>
8065 Locks the framebuffer.
8066 Gets called by the IDisplay object where this framebuffer is
8067 bound to.
8068 </desc>
8069 </method>
8070
8071 <method name="unlock">
8072 <desc>
8073 Unlocks the framebuffer.
8074 Gets called by the IDisplay object where this framebuffer is
8075 bound to.
8076 </desc>
8077 </method>
8078
8079 <method name="notifyUpdate">
8080 <desc>
8081 Informs about an update.
8082 Gets called by the display object where this buffer is
8083 registered.
8084 </desc>
8085 <param name="x" type="unsigned long" dir="in"/>
8086 <param name="y" type="unsigned long" dir="in"/>
8087 <param name="width" type="unsigned long" dir="in"/>
8088 <param name="height" type="unsigned long" dir="in"/>
8089 <param name="finished" type="boolean" dir="return"/>
8090 </method>
8091
8092 <method name="requestResize">
8093 <desc>
8094 Requests a size and pixel format change.
8095
8096 There are two modes of working with the video buffer of the virtual
8097 machine. The <i>indirect</i> mode implies that the IFramebuffer
8098 implementation allocates a memory buffer for the requested display mode
8099 and provides it to the virtual machine. In <i>direct</i> mode, the
8100 IFramebuffer implementation uses the memory buffer allocated and owned
8101 by the virtual machine. This buffer represents the video memory of the
8102 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
8103 usually faster because the implementation gets a raw pointer to the
8104 guest VRAM buffer which it can directly use for visualising the contents
8105 of the virtual display, as opposed to the indirect mode where the
8106 contents of guest VRAM are copied to the memory buffer provided by
8107 the implementation every time a display update occurs.
8108
8109 It is important to note that the direct mode is really fast only when
8110 the implementation uses the given guest VRAM buffer directly, for
8111 example, by blitting it to the window representing the virtual machine's
8112 display, which saves at least one copy operation comparing to the
8113 indirect mode. However, using the guest VRAM buffer directly is not
8114 always possible: the format and the color depth of this buffer may be
8115 not supported by the target window, or it may be unknown (opaque) as in
8116 case of text or non-linear multi-plane VGA video modes. In this case,
8117 the indirect mode (that is always available) should be used as a
8118 fallback: when the guest VRAM contents are copied to the
8119 implementation-provided memory buffer, color and format conversion is
8120 done authomatically by the underlying code.
8121
8122 The @a pixelFormat parameter defines whether the direct mode is
8123 available or not. If @a pixelFormat is <link
8124 to="PixelFormat::Opaque"/> then direct access to the guest
8125 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and @a
8126 bytesPerLine parameters must be ignored and the implementation must use
8127 the indirect mode (where it provides its own buffer in one of the
8128 supported formats). In all other cases, @a pixelFormat together with @a
8129 bitsPerPixel and @a bytesPerLine define the format of the video memory
8130 buffer pointed to by the @a VRAM parameter and the implementation is
8131 free to choose which mode to use. To indicate that this framebuffer uses
8132 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
8133 attribute must return <tt>true</tt> and <link to="#address"/> must
8134 return exactly the same address that is passed in the @a VRAM parameter
8135 of this method; otherwise it is assumed that the indirect strategy is
8136 chosen.
8137
8138 The @a width and @a height parameters represent the size of the
8139 requested display mode in both modes. In case of indirect mode, the
8140 provided memory buffer should be big enough to store data of the given
8141 display mode. In case of direct mode, it is guaranteed that the given @a
8142 VRAM buffer contains enough space to represent the display mode of the
8143 given size. Note that this framebuffer's <link to="#width"/> and <link
8144 to="#height"/> attributes must return exactly the same values as
8145 passed to this method after the resize is completed (see below).
8146
8147 The @a finished output parameter determines if the implementation has
8148 finished resizing the framebuffer or not. If, for some reason, the
8149 resize cannot be finished immediately during this call, @a finished
8150 must be set to @c false, and the implementation must call
8151 <link to="IDisplay::resizeCompleted()"/> after it has returned from
8152 this method as soon as possible. If @a finished is @c false, the
8153 machine will not call any framebuffer methods until
8154 <link to="IDisplay::resizeCompleted()"/> is called.
8155
8156 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
8157 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
8158 this framebuffer must return exactly the same values as specified in the
8159 parameters of this method, after the resize is completed. If the
8160 indirect mode is chosen, these attributes must return values describing
8161 the format of the implementation's own memory buffer <link
8162 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
8163 value must always correlate with <link to="#pixelFormat"/>. Note that
8164 the <link to="#pixelFormat"/> attribute must never return <link
8165 to="PixelFormat::Opaque"/> regardless of the selected mode.
8166
8167 <note>
8168 This method is called by the IDisplay object under the
8169 <link to="#lock()"/> provided by this IFramebuffer
8170 implementation. If this method returns @c false in @a finished, then
8171 this lock is not released until
8172 <link to="IDisplay::resizeCompleted()"/> is called.
8173 </note>
8174 </desc>
8175 <param name="screenId" type="unsigned long" dir="in">
8176 <desc>
8177 Logical screen number. Must be used in the corresponding call to
8178 <link to="IDisplay::resizeCompleted()"/> if this call is made.
8179 </desc>
8180 </param>
8181 <param name="pixelFormat" type="unsigned long" dir="in">
8182 <desc>
8183 Pixel format of the memory buffer pointed to by @a VRAM.
8184 See also <link to="FramebufferPixelFormat"/>.
8185 </desc>
8186 </param>
8187 <param name="VRAM" type="octet" mod="ptr" dir="in">
8188 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
8189 </param>
8190 <param name="bitsPerPixel" type="unsigned long" dir="in">
8191 <desc>Color depth, bits per pixel.</desc>
8192 </param>
8193 <param name="bytesPerLine" type="unsigned long" dir="in">
8194 <desc>Size of one scan line, in bytes.</desc>
8195 </param>
8196 <param name="width" type="unsigned long" dir="in">
8197 <desc>Width of the guest display, in pixels.</desc>
8198 </param>
8199 <param name="height" type="unsigned long" dir="in">
8200 <desc>Height of the guest display, in pixels.</desc>
8201 </param>
8202 <param name="finished" type="boolean" dir="return">
8203 <desc>
8204 Can the VM start using the new framebuffer immediately
8205 after this method returns or it should wait for
8206 <link to="IDisplay::resizeCompleted()"/>.
8207 </desc>
8208 </param>
8209 </method>
8210
8211 <method name="operationSupported">
8212 <desc>
8213 Returns whether the given acceleration operation is supported
8214 by the IFramebuffer implementation. If not, the display object
8215 will not attempt to call the corresponding IFramebuffer entry
8216 point. Even if an operation is indicated to supported, the
8217 IFramebuffer implementation always has the option to return non
8218 supported from the corresponding acceleration method in which
8219 case the operation will be performed by the display engine. This
8220 allows for reduced IFramebuffer implementation complexity where
8221 only common cases are handled.
8222 </desc>
8223 <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
8224 <param name="supported" type="boolean" dir="return"/>
8225 </method>
8226
8227 <method name="videoModeSupported">
8228 <desc>
8229 Returns whether the framebuffer implementation is willing to
8230 support a given video mode. In case it is not able to render
8231 the video mode (or for some reason not willing), it should
8232 return false. Usually this method is called when the guest
8233 asks the VMM device whether a given video mode is supported
8234 so the information returned is directly exposed to the guest.
8235 It is important that this method returns very quickly.
8236 </desc>
8237 <param name="width" type="unsigned long" dir="in"/>
8238 <param name="height" type="unsigned long" dir="in"/>
8239 <param name="bpp" type="unsigned long" dir="in"/>
8240 <param name="supported" type="boolean" dir="return"/>
8241 </method>
8242
8243 <method name="solidFill">
8244 <desc>
8245 Fills the specified rectangle on screen with a solid color.
8246 </desc>
8247 <param name="x" type="unsigned long" dir="in"/>
8248 <param name="y" type="unsigned long" dir="in"/>
8249 <param name="width" type="unsigned long" dir="in"/>
8250 <param name="height" type="unsigned long" dir="in"/>
8251 <param name="color" type="unsigned long" dir="in"/>
8252 <param name="handled" type="boolean" dir="return"/>
8253 </method>
8254
8255 <method name="copyScreenBits">
8256 <desc>
8257 Copies specified rectangle on the screen.
8258 </desc>
8259 <param name="xDst" type="unsigned long" dir="in"/>
8260 <param name="yDst" type="unsigned long" dir="in"/>
8261 <param name="xSrc" type="unsigned long" dir="in"/>
8262 <param name="ySrc" type="unsigned long" dir="in"/>
8263 <param name="width" type="unsigned long" dir="in"/>
8264 <param name="height" type="unsigned long" dir="in"/>
8265 <param name="handled" type="boolean" dir="return"/>
8266 </method>
8267
8268 <method name="getVisibleRegion">
8269 <desc>
8270 Returns the visible region of this framebuffer.
8271
8272 If the @a rectangles parameter is <tt>NULL</tt> then the value of the
8273 @a count parameter is ignored and the number of elements necessary to
8274 describe the current visible region is returned in @a countCopied.
8275
8276 If @a rectangles is not <tt>NULL</tt> but @a count is less
8277 than the required number of elements to store region data, the method
8278 will report a failure. If @a count is equal or greater than the
8279 required number of elements, then the actual number of elements copied
8280 to the provided array will be returned in @a countCopied.
8281
8282 <note>
8283 The address of the provided array must be in the process space of
8284 this IFramebuffer object.
8285 </note>
8286 </desc>
8287 <param name="rectangles" type="octet" mod="ptr" dir="in">
8288 <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
8289 </param>
8290 <param name="count" type="unsigned long" dir="in">
8291 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
8292 </param>
8293 <param name="countCopied" type="unsigned long" dir="return">
8294 <desc>Number of elements copied to the @a rectangles array.</desc>
8295 </param>
8296 </method>
8297
8298 <method name="setVisibleRegion">
8299 <desc>
8300 Suggests a new visible region to this framebuffer. This region
8301 represents the area of the VM display which is a union of regions of
8302 all top-level windows of the guest operating system running inside the
8303 VM (if the Guest Additions for this system support this
8304 functionality). This information may be used by the frontends to
8305 implement the seamless desktop integration feature.
8306
8307 <note>
8308 The address of the provided array must be in the process space of
8309 this IFramebuffer object.
8310 </note>
8311 <note>
8312 The IFramebuffer implementation must make a copy of the provided
8313 array of rectangles.
8314 </note>
8315 </desc>
8316 <param name="rectangles" type="octet" mod="ptr" dir="in">
8317 <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
8318 </param>
8319 <param name="count" type="unsigned long" dir="in">
8320 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
8321 </param>
8322 </method>
8323
8324 </interface>
8325
8326 <interface
8327 name="IFramebufferOverlay" extends="IFrameBuffer"
8328 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
8329 wsmap="suppress"
8330 >
8331 <desc>
8332 The IFramebufferOverlay interface represents an alpha blended overlay
8333 for displaying status icons above an IFramebuffer. It is always created
8334 not visible, so that it must be explicitly shown. It only covers a
8335 portion of the IFramebuffer, determined by its width, height and
8336 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
8337 that order) format, and may be written to directly. Do re-read the
8338 width though, after setting it, as it may be adjusted (increased) to
8339 make it more suitable for the front end.
8340 </desc>
8341 <attribute name="x" type="unsigned long" readonly="yes">
8342 <desc>X position of the overlay, relative to the framebuffer.</desc>
8343 </attribute>
8344
8345 <attribute name="y" type="unsigned long" readonly="yes">
8346 <desc>Y position of the overlay, relative to the framebuffer.</desc>
8347 </attribute>
8348
8349 <attribute name="visible" type="boolean" readonly="no">
8350 <desc>
8351 Whether the overlay is currently visible.
8352 </desc>
8353 </attribute>
8354
8355 <attribute name="alpha" type="unsigned long" readonly="no">
8356 <desc>
8357 The global alpha value for the overlay. This may or may not be
8358 supported by a given front end.
8359 </desc>
8360 </attribute>
8361
8362 <method name="move">
8363 <desc>
8364 Changes the overlay's position relative to the IFramebuffer.
8365 </desc>
8366 <param name="x" type="unsigned long" dir="in"/>
8367 <param name="y" type="unsigned long" dir="in"/>
8368 </method>
8369
8370 </interface>
8371
8372 <interface
8373 name="IDisplay" extends="$unknown"
8374 uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
8375 wsmap="suppress"
8376 >
8377 <desc>
8378 The IDisplay interface represents the virtual machine's display.
8379
8380 The object implementing this interface is contained in each
8381 <link to="IConsole::display"/> attribute and represents the visual
8382 output of the virtual machine.
8383
8384 The virtual display supports pluggable output targets represented by the
8385 IFramebuffer interface. Examples of the output target are a window on
8386 the host computer or an RDP sessoin's display on a remote computer.
8387 </desc>
8388 <attribute name="width" type="unsigned long" readonly="yes">
8389 <desc>Current display width.</desc>
8390 </attribute>
8391
8392 <attribute name="height" type="unsigned long" readonly="yes">
8393 <desc>Current display height.</desc>
8394 </attribute>
8395
8396 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
8397 <desc>
8398 Current guest display color depth. Note that this may differ
8399 from <link to="IFramebuffer::bitsPerPixel"/>.
8400 </desc>
8401 </attribute>
8402
8403 <method name="setupInternalFramebuffer">
8404 <desc>
8405 Prepares an internally managed framebuffer.
8406 </desc>
8407 <param name="depth" type="unsigned long" dir="in"/>
8408 </method>
8409
8410 <method name="lockFramebuffer">
8411 <desc>
8412 Requests access to the internal framebuffer.
8413 </desc>
8414 <param name="address" type="octet" mod="ptr" dir="return"/>
8415 </method>
8416
8417 <method name="unlockFramebuffer">
8418 <desc>
8419 Releases access to the internal framebuffer.
8420 </desc>
8421 </method>
8422
8423 <method name="registerExternalFramebuffer">
8424 <desc>
8425 Registers an external framebuffer.
8426 </desc>
8427 <param name="framebuffer" type="IFramebuffer" dir="in"/>
8428 </method>
8429
8430 <method name="setFramebuffer">
8431 <desc>
8432 Sets the framebuffer for given screen.
8433 </desc>
8434 <param name="screenId" type="unsigned long" dir="in"/>
8435 <param name="framebuffer" type="IFramebuffer" dir="in"/>
8436 </method>
8437
8438 <method name="getFramebuffer">
8439 <desc>
8440 Queries the framebuffer for given screen.
8441 </desc>
8442 <param name="screenId" type="unsigned long" dir="in"/>
8443 <param name="framebuffer" type="IFramebuffer" dir="out"/>
8444 <param name="xOrigin" type="long" dir="out"/>
8445 <param name="yOrigin" type="long" dir="out"/>
8446 </method>
8447
8448 <method name="setVideoModeHint">
8449 <desc>
8450 Asks VirtualBox to request the given video mode from
8451 the guest. This is just a hint and it cannot be guaranteed
8452 that the requested resolution will be used. Guest Additions
8453 are required for the request to be seen by guests. The caller
8454 should issue the request and wait for a resolution change and
8455 after a timeout retry.
8456
8457 Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
8458 parameters means that the corresponding values should be taken from the
8459 current video mode (i.e. left unchanged).
8460
8461 If the guest OS supports multi-monitor configuration then the @a display
8462 parameter specifies the number of the guest display to send the hint to:
8463 <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
8464 so on. If the multi-monitor configuration is not supported, @a display
8465 must be <tt>0</tt>.
8466
8467 </desc>
8468 <param name="width" type="unsigned long" dir="in"/>
8469 <param name="height" type="unsigned long" dir="in"/>
8470 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
8471 <param name="display" type="unsigned long" dir="in"/>
8472 </method>
8473
8474 <method name="setSeamlessMode">
8475 <desc>
8476 Enables or disables seamless guest display rendering (seamless desktop
8477 integration) mode.
8478 <note>
8479 Calling this method has no effect if <link
8480 to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
8481 </note>
8482 </desc>
8483 <param name="enabled" type="boolean" dir="in"/>
8484 </method>
8485
8486 <method name="takeScreenShot">
8487 <desc>
8488 Takes a screen shot of the requested size and copies it to the
8489 32-bpp buffer allocated by the caller.
8490 </desc>
8491 <param name="address" type="octet" mod="ptr" dir="in"/>
8492 <param name="width" type="unsigned long" dir="in"/>
8493 <param name="height" type="unsigned long" dir="in"/>
8494 </method>
8495
8496 <method name="drawToScreen">
8497 <desc>
8498 Draws a 32-bpp image of the specified size from the given buffer
8499 to the given point on the VM display.
8500 </desc>
8501 <param name="address" type="octet" mod="ptr" dir="in"/>
8502 <param name="x" type="unsigned long" dir="in"/>
8503 <param name="y" type="unsigned long" dir="in"/>
8504 <param name="width" type="unsigned long" dir="in"/>
8505 <param name="height" type="unsigned long" dir="in"/>
8506 </method>
8507
8508 <method name="invalidateAndUpdate">
8509 <desc>
8510 Does a full invalidation of the VM display and instructs the VM
8511 to update it.
8512 </desc>
8513 </method>
8514
8515 <method name="resizeCompleted">
8516 <desc>
8517 Signals that a framebuffer has completed the resize operation.
8518 </desc>
8519 <param name="screenId" type="unsigned long" dir="in"/>
8520 </method>
8521
8522 <method name="updateCompleted">
8523 <desc>
8524 Signals that a framebuffer has completed the update operation.
8525 </desc>
8526 </method>
8527
8528 </interface>
8529
8530 <!--
8531 // INetworkAdapter
8532 /////////////////////////////////////////////////////////////////////////
8533 -->
8534
8535 <enum
8536 name="NetworkAttachmentType"
8537 uuid="8730d899-d036-4925-bc63-e58f3486f4bf"
8538 >
8539 <desc>
8540 Network attachment type.
8541 </desc>
8542
8543 <const name="Null" value="0">
8544 <desc><tt>null</tt> value. Also means "not attached".</desc>
8545 </const>
8546 <const name="NAT" value="1"/>
8547 <const name="HostInterface" value="2"/>
8548 <const name="Internal" value="3"/>
8549 </enum>
8550
8551 <enum
8552 name="NetworkAdapterType"
8553 uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
8554 >
8555 <desc>
8556 Network adapter type.
8557 </desc>
8558
8559 <const name="Null" value="0">
8560 <desc><tt>null</tt> value. Never used by the API.</desc>
8561 </const>
8562 <const name="Am79C970A" value="1"/>
8563 <const name="Am79C973" value="2"/>
8564 <const name="I82540EM" value="3"/>
8565 <const name="I82543GC" value="4"/>
8566 </enum>
8567
8568 <interface
8569 name="INetworkAdapter" extends="$unknown"
8570 uuid="a876d9b1-68d9-43b1-9c68-ddea0a473663"
8571 wsmap="managed"
8572 >
8573 <attribute name="adapterType" type="NetworkAdapterType">
8574 <desc>
8575 Type of the virtual network adapter. Depending on this value,
8576 VirtualBox will provide a different virtual network hardware
8577 to the guest.
8578 </desc>
8579 </attribute>
8580
8581 <attribute name="slot" type="unsigned long" readonly="yes">
8582 <desc>
8583 Slot number this adapter is plugged into. Corresponds to
8584 the value you pass to <link to="IMachine::getNetworkAdapter"/>
8585 to obtain this instance.
8586 </desc>
8587 </attribute>
8588
8589 <attribute name="enabled" type="boolean">
8590 <desc>
8591 Flag whether the network adapter is present in the
8592 guest system. If disabled, the virtual guest hardware will
8593 not contain this network adapter. Can only be changed when
8594 the VM is not running.
8595 </desc>
8596 </attribute>
8597
8598 <attribute name="MACAddress" type="wstring">
8599 <desc>
8600 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
8601 it to NULL, VirtualBox will generate a unique MAC address.
8602 </desc>
8603 </attribute>
8604
8605 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
8606
8607 <attribute name="hostInterface" type="wstring">
8608 <desc>
8609 Name of the Host Network Interface that is currently in use. NULL will be returned
8610 if no device has been allocated. On Linux, setting this refers to a permanent TAP
8611 device. However, a file descriptor has precedence over the interface name on Linux.
8612 Note that when VBox allocates a TAP device, this property will not be set, i.e. the
8613 interface name would have to be determined using the file descriptor and /proc/self/fd.
8614 </desc>
8615 </attribute>
8616
8617<if target="xpidl">
8618 <attribute name="TAPFileDescriptor" type="long">
8619 <desc>
8620 File descriptor of the TAP device. It can either be setup by the caller
8621 which has to supply an existing valid file handle allocated in the parent
8622 process of the VM process or allocated by VirtualBox. The value is -1 if it
8623 has not been defined. This property is non persistent, i.e. it will not be
8624 stored in the VM's configuration data and thus has to be set at each startup.
8625 </desc>
8626 </attribute>
8627 <attribute name="TAPSetupApplication" type="wstring">
8628 <desc>
8629 Application to start to configure the TAP device.
8630 It is being passed two parameters, 1) the file handle (as ascii),
8631 2) the TAP device name if it is available.
8632 </desc>
8633 </attribute>
8634 <attribute name="TAPTerminateApplication" type="wstring">
8635 <desc>
8636 Application to start before closing a TAP device.
8637 It is being passed two parameters, 1) the file handle (as ascii),
8638 2) the TAP device name if it is available.
8639 </desc>
8640 </attribute>
8641</if>
8642
8643 <attribute name="internalNetwork" type="wstring">
8644 <desc>
8645 Name of the internal network the VM is attached to.
8646 </desc>
8647 </attribute>
8648
8649 <attribute name="NATNetwork" type="wstring">
8650 <desc>
8651 Name of the NAT network the VM is attached to.
8652 </desc>
8653 </attribute>
8654
8655 <attribute name="cableConnected" type="boolean">
8656 <desc>
8657 Flag whether the adapter reports the cable as connected or not.
8658 It can be used to report offline situations to a VM.
8659 </desc>
8660 </attribute>
8661
8662 <attribute name="lineSpeed" type="unsigned long">
8663 <desc>
8664 Line speed reported by custom drivers, in units of 1 kbps.
8665 </desc>
8666 </attribute>
8667
8668 <attribute name="traceEnabled" type="boolean">
8669 <desc>
8670 Flag whether network traffic from/to the network card should be traced.
8671 Can only be toggled when the VM is turned off.
8672 </desc>
8673 </attribute>
8674
8675 <attribute name="traceFile" type="wstring">
8676 <desc>
8677 Filename where a network trace will be stored. If not set, VBox-pid.pcap
8678 will be used.
8679 </desc>
8680 </attribute>
8681
8682 <method name="attachToNAT">
8683 <desc>
8684 Attach the network adapter to the Network Address Translation (NAT) interface.
8685 </desc>
8686 </method>
8687
8688 <method name="attachToHostInterface">
8689 <desc>
8690 Attach the network adapter to a host interface. On Linux, the TAP
8691 setup application will be executed if configured and unless a device
8692 name and/or file descriptor has been set, a new TAP interface will be
8693 created.
8694 </desc>
8695 </method>
8696
8697 <method name="attachToInternalNetwork">
8698 <desc>
8699 Attach the network adapter to an internal network.
8700 </desc>
8701 </method>
8702
8703 <method name="detach">
8704 <desc>
8705 Detach the network adapter
8706 </desc>
8707 </method>
8708 </interface>
8709
8710
8711 <!--
8712 // ISerialPort
8713 /////////////////////////////////////////////////////////////////////////
8714 -->
8715
8716 <enum
8717 name="PortMode"
8718 uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
8719 >
8720 <desc>
8721 The PortMode enumeration represents possible communicaton modes for
8722 the virtual serial port device.
8723 </desc>
8724
8725 <const name="Disconnected" value="0">
8726 <desc>Virtual device is not attached to any real host device.</desc>
8727 </const>
8728 <const name="HostPipe" value="1">
8729 <desc>Virtual device is attached to a host pipe.</desc>
8730 </const>
8731 <const name="HostDevice" value="2">
8732 <desc>Virtual device is attached to a host device.</desc>
8733 </const>
8734 </enum>
8735
8736 <interface
8737 name="ISerialPort" extends="$unknown"
8738 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
8739 wsmap="managed"
8740 >
8741
8742 <desc>
8743 The ISerialPort interface represents the virtual serial port device.
8744
8745 The virtual serial port device acts like an ordinary serial port
8746 inside the virtual machine. This device communicates to the real
8747 serial port hardware in one of two modes: host pipe or host device.
8748
8749 In host pipe mode, the #path attribute specifies the path to the pipe on
8750 the host computer that represents a serial port. The #server attribute
8751 determines if this pipe is created by the virtual machine process at
8752 machine startup or it must already exist before starting machine
8753 execution.
8754
8755 In host device mode, the #path attribute specifies the name of the
8756 serial port device on the host computer.
8757
8758 There is also a third communication mode: the disconnected mode. In this
8759 mode, the guest OS running inside the virtual machine will be able to
8760 detect the serial port, but all port write operations will be discarded
8761 and all port read operations will return no data.
8762
8763 <see>IMachine::getSerialPort</see>
8764 </desc>
8765
8766 <attribute name="slot" type="unsigned long" readonly="yes">
8767 <desc>
8768 Slot number this serial port is plugged into. Corresponds to
8769 the value you pass to <link to="IMachine::getSerialPort"/>
8770 to obtain this instance.
8771 </desc>
8772 </attribute>
8773
8774 <attribute name="enabled" type="boolean">
8775 <desc>
8776 Flag whether the serial port is enabled. If disabled,
8777 the serial port will not be reported to the guest OS.
8778 </desc>
8779 </attribute>
8780
8781 <attribute name="IOBase" type="unsigned long">
8782 <desc>Base I/O address of the serial port.</desc>
8783 </attribute>
8784
8785 <attribute name="IRQ" type="unsigned long">
8786 <desc>IRQ number of the serial port.</desc>
8787 </attribute>
8788
8789 <attribute name="hostMode" type="PortMode">
8790 <desc>How is this port connected to the host.</desc>
8791 </attribute>
8792
8793 <attribute name="server" type="boolean">
8794 <desc>
8795 Flag whether this serial port acts as a server (creates a new pipe on
8796 the host) or as a client (uses the existing pipe). This attribute is
8797 used only when <link to="#hostMode"/> is PortMode::HostPipe.
8798 </desc>
8799 </attribute>
8800
8801 <attribute name="path" type="wstring">
8802 <desc>
8803 Path to the serial port's pipe on the host when <link to="#hostMode"/> is
8804 PortMode::HostPipe, or the host serial device name when
8805 <link to="#hostMode"/> is PortMode::HostDevice. In either of the above
8806 cases, setting a @c null or an empty string as the attribute's value
8807 will result into an error. Otherwise, the value of this property is
8808 ignored.
8809 </desc>
8810 </attribute>
8811
8812 </interface>
8813
8814 <!--
8815 // IParallelPort
8816 /////////////////////////////////////////////////////////////////////////
8817 -->
8818
8819 <interface
8820 name="IParallelPort" extends="$unknown"
8821 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
8822 wsmap="managed"
8823 >
8824
8825 <desc>
8826 The IParallelPort interface represents the virtual parallel port device.
8827
8828 The virtual parallel port device acts like an ordinary parallel port
8829 inside the virtual machine. This device communicates to the real
8830 parallel port hardware using the name of the parallel device on the host
8831 computer specified in the #path attribute.
8832
8833 Each virtual parallel port device is assigned a base I/O address and an
8834 IRQ number that will be reported to the guest operating system and used
8835 to operate the given parallel port from within the virtual machine.
8836
8837 <see>IMachine::getParallelPort</see>
8838 </desc>
8839
8840 <attribute name="slot" type="unsigned long" readonly="yes">
8841 <desc>
8842 Slot number this parallel port is plugged into. Corresponds to
8843 the value you pass to <link to="IMachine::getParallelPort"/>
8844 to obtain this instance.
8845 </desc>
8846 </attribute>
8847
8848 <attribute name="enabled" type="boolean">
8849 <desc>
8850 Flag whether the parallel port is enabled. If disabled,
8851 the parallel port will not be reported to the guest OS.
8852 </desc>
8853 </attribute>
8854
8855 <attribute name="IOBase" type="unsigned long">
8856 <desc>Base I/O address of the parallel port.</desc>
8857 </attribute>
8858
8859 <attribute name="IRQ" type="unsigned long">
8860 <desc>IRQ number of the parallel port.</desc>
8861 </attribute>
8862
8863 <attribute name="path" type="wstring">
8864 <desc>
8865 Host parallel device name. If this parallel port is enabled, setting a
8866 @c null or an empty string as this attribute's value will result into
8867 an error.
8868 </desc>
8869 </attribute>
8870
8871 </interface>
8872
8873
8874 <!--
8875 // IMachineDebugger
8876 /////////////////////////////////////////////////////////////////////////
8877 -->
8878
8879 <interface
8880 name="IMachineDebugger" extends="$unknown"
8881 uuid="0de52346-938b-4020-a33b-471be542f3ff"
8882 wsmap="suppress"
8883 >
8884 <method name="resetStats">
8885 <desc>
8886 Reset VM statistics.
8887 </desc>
8888 <param name="pattern" type="wstring" dir="in">
8889 <desc>The selection pattern. A bit similar to filename globbing.</desc>
8890 </param>
8891 </method>
8892
8893 <method name="dumpStats">
8894 <desc>
8895 Dumps VM statistics.
8896 </desc>
8897 <param name="pattern" type="wstring" dir="in">
8898 <desc>The selection pattern. A bit similar to filename globbing.</desc>
8899 </param>
8900 </method>
8901
8902 <method name="getStats">
8903 <desc>
8904 Get the VM statistics in a XMLish format.
8905 </desc>
8906 <param name="pattern" type="wstring" dir="in">
8907 <desc>The selection pattern. A bit similar to filename globbing.</desc>
8908 </param>
8909 <param name="withDescriptions" type="boolean" dir="in">
8910 <desc>Whether to include the descriptions.</desc>
8911 </param>
8912 <param name="stats" type="wstring" dir="out">
8913 <desc>The XML document containing the statistics.</desc>
8914 </param>
8915 </method>
8916
8917 <attribute name="singlestep" type="boolean">
8918 <desc>Switch for enabling singlestepping.</desc>
8919 </attribute>
8920
8921 <attribute name="recompileUser" type="boolean">
8922 <desc>Switch for forcing code recompilation for user mode code.</desc>
8923 </attribute>
8924
8925 <attribute name="recompileSupervisor" type="boolean">
8926 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
8927 </attribute>
8928
8929 <attribute name="PATMEnabled" type="boolean">
8930 <desc>Switch for enabling and disabling the PATM component.</desc>
8931 </attribute>
8932
8933 <attribute name="CSAMEnabled" type="boolean">
8934 <desc>Switch for enabling and disabling the CSAM component.</desc>
8935 </attribute>
8936
8937 <attribute name="logEnabled" type="boolean">
8938 <desc>Switch for enabling and disabling logging.</desc>
8939 </attribute>
8940
8941 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
8942 <desc>
8943 Flag indicating whether the VM is currently making use of CPU hardware
8944 virtualization extensions.
8945 </desc>
8946 </attribute>
8947
8948 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
8949 <desc>
8950 Flag indicating whether the VM is currently making use of the nested paging
8951 CPU hardware virtualization extension.
8952 </desc>
8953 </attribute>
8954
8955 <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
8956 <desc>
8957 Flag indicating whether the VM is currently making use of the VPID
8958 VT-x extension.
8959 </desc>
8960 </attribute>
8961
8962 <attribute name="PAEEnabled" type="boolean" readonly="yes">
8963 <desc>
8964 Flag indicating whether the VM is currently making use of the Physical
8965 Address Extension CPU feature.
8966 </desc>
8967 </attribute>
8968
8969 <attribute name="virtualTimeRate" type="unsigned long">
8970 <desc>
8971 The rate at which the virtual time runs expressed as a percentage.
8972 The accepted range is 2% to 20000%.
8973 </desc>
8974 </attribute>
8975
8976 <!-- @todo method for setting log flags, groups and destination! -->
8977
8978 <attribute name="VM" type="unsigned long long" readonly="yes">
8979 <desc>
8980 Gets the VM handle. This is only for internal use while
8981 we carve the details of this interface.
8982 </desc>
8983 </attribute>
8984
8985 </interface>
8986
8987 <!--
8988 // IUSBController
8989 /////////////////////////////////////////////////////////////////////////
8990 -->
8991
8992 <interface
8993 name="IUSBController" extends="$unknown"
8994 uuid="f4c2d3dc-f109-4da7-93b1-ec28973ac89f"
8995 wsmap="managed"
8996 >
8997 <attribute name="enabled" type="boolean">
8998 <desc>
8999 Flag whether the USB controller is present in the
9000 guest system. If disabled, the virtual guest hardware will
9001 not contain any USB controller. Can only be changed when
9002 the VM is powered off.
9003 </desc>
9004 </attribute>
9005
9006 <attribute name="enabledEhci" type="boolean">
9007 <desc>
9008 Flag whether the USB EHCI controller is present in the
9009 guest system. If disabled, the virtual guest hardware will
9010 not contain a USB EHCI controller. Can only be changed when
9011 the VM is powered off.
9012 </desc>
9013 </attribute>
9014
9015 <attribute name="USBStandard" type="unsigned short" readonly="yes">
9016 <desc>
9017 USB standard version which the controller implements.
9018 This is a BCD which means that the major version is in the
9019 high byte and minor version is in the low byte.
9020 </desc>
9021 </attribute>
9022
9023 <attribute name="deviceFilters" type="IUSBDeviceFilterCollection" readonly="yes">
9024 <desc>
9025 List of USB device filters associated with the machine.
9026
9027 If the machine is currently running, these filters are activated
9028 every time a new (supported) USB device is attached to the host
9029 computer that was not ignored by global filters
9030 (<link to="IHost::USBDeviceFilters"/>).
9031
9032 These filters are also activated when the machine is powered up.
9033 They are run against a list of all currently available USB
9034 devices (in states
9035 <link to="USBDeviceState::Available">Available</link>,
9036 <link to="USBDeviceState::Busy">Busy</link>,
9037 <link to="USBDeviceState::Held">Held</link>) that were not previously
9038 ignored by global filters.
9039
9040 If at least one filter matches the USB device in question, this
9041 device is automatically captured (attached to) the virtual USB
9042 controller of this machine.
9043
9044 <see>IUSBDeviceFilter, ::IUSBController</see>
9045 </desc>
9046 </attribute>
9047
9048 <method name="createDeviceFilter">
9049 <desc>
9050 Creates a new USB device filter. All attributes except
9051 the filter name are set to <tt>null</tt> (any match),
9052 <i>active</i> is <tt>false</tt> (the filter is not active).
9053
9054 The created filter can then be added to the list of filters using
9055 <link to="#insertDeviceFilter()"/>.
9056
9057 <see>#deviceFilters</see>
9058 </desc>
9059 <param name="name" type="wstring" dir="in">
9060 <desc>
9061 Filter name. See <link to="IUSBDeviceFilter::name"/>
9062 for more info.
9063 </desc>
9064 </param>
9065 <param name="filter" type="IUSBDeviceFilter" dir="return">
9066 <desc>Created filter object.</desc>
9067 </param>
9068 </method>
9069
9070 <method name="insertDeviceFilter">
9071 <desc>
9072 Inserts the given USB device to the specified position
9073 in the list of filters.
9074
9075 Positions are numbered starting from <tt>0</tt>. If the specified
9076 position is equal to or greater than the number of elements in
9077 the list, the filter is added to the end of the collection.
9078
9079 <note>
9080 Duplicates are not allowed, so an attempt to inster a
9081 filter that is already in the collection, will return an
9082 error.
9083 </note>
9084
9085 <see>#deviceFilters</see>
9086 </desc>
9087 <param name="position" type="unsigned long" dir="in">
9088 <desc>Position to insert the filter to.</desc>
9089 </param>
9090 <param name="filter" type="IUSBDeviceFilter" dir="in">
9091 <desc>USB device filter to insert.</desc>
9092 </param>
9093 </method>
9094
9095 <method name="removeDeviceFilter">
9096 <desc>
9097 Removes a USB device filter from the specified position in the
9098 list of filters.
9099
9100 Positions are numbered starting from <tt>0</tt>. Specifying a
9101 position equal to or greater than the number of elements in
9102 the list will produce an error.
9103
9104 <see>#deviceFilters</see>
9105 </desc>
9106 <param name="position" type="unsigned long" dir="in">
9107 <desc>Position to remove the filter from.</desc>
9108 </param>
9109 <param name="filter" type="IUSBDeviceFilter" dir="return">
9110 <desc>Removed USB device filter.</desc>
9111 </param>
9112 </method>
9113
9114 </interface>
9115
9116
9117 <!--
9118 // IUSBDevice
9119 /////////////////////////////////////////////////////////////////////////
9120 -->
9121
9122 <enumerator
9123 name="IUSBDeviceEnumerator" type="IUSBDevice"
9124 uuid="aefe00f7-eb8a-454b-9ea4-fd5ad93c0e99"
9125 />
9126
9127 <collection
9128 name="IUSBDeviceCollection" type="IUSBDevice"
9129 enumerator="IUSBDeviceEnumerator"
9130 uuid="e31f3248-90dd-4ca2-95f0-6b36042d96a2"
9131 readonly="yes"
9132 >
9133 <method name="findById">
9134 <desc>
9135 Searches this collection for a USB device with the given UUID.
9136 <note>
9137 The method returns an error if the given UUID does not
9138 correspond to any USB device in the collection.
9139 </note>
9140 <see>IUSBDevice::id</see>
9141 </desc>
9142 <param name="id" type="uuid" dir="in">
9143 <desc>UUID of the USB device to search for.</desc>
9144 </param>
9145 <param name="device" type="IUSBDevice" dir="return">
9146 <desc>Found USB device object.</desc>
9147 </param>
9148 </method>
9149
9150 <method name="findByAddress">
9151 <desc>
9152 Searches this collection for a USB device with the given
9153 host address.
9154 <note>
9155 The method returns an error if the given address does not
9156 correspond to any USB device in the collection.
9157 </note>
9158 <see>IUSBDevice::address</see>
9159 </desc>
9160 <param name="name" type="wstring" dir="in">
9161 <desc>
9162 Address of the USB device (as assigned by the host) to
9163 search for.
9164 </desc>
9165 </param>
9166 <param name="device" type="IUSBDevice" dir="return">
9167 <desc>Found USB device object.</desc>
9168 </param>
9169 </method>
9170
9171 </collection>
9172
9173 <interface
9174 name="IUSBDevice" extends="$unknown"
9175 uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
9176 wsmap="managed"
9177 >
9178 <desc>
9179 The IUSBDevice interface represents a virtual USB device attached to the
9180 virtual machine.
9181
9182 A collection of objects implementing this interface is stored in the
9183 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
9184 attached to a running virtual machine's USB controller.
9185 </desc>
9186
9187 <attribute name="id" type="uuid" readonly="yes">
9188 <desc>
9189 Unique USB device ID. This ID is built from #vendorId,
9190 #productId, #revision and #serialNumber.
9191 </desc>
9192 </attribute>
9193
9194 <attribute name="vendorId" type="unsigned short" readonly="yes">
9195 <desc>Vendor ID.</desc>
9196 </attribute>
9197
9198 <attribute name="productId" type="unsigned short" readonly="yes">
9199 <desc>Product ID.</desc>
9200 </attribute>
9201
9202 <attribute name="revision" type="unsigned short" readonly="yes">
9203 <desc>
9204 Product revision number. This is a packed BCD represented as
9205 unsigned short. The high byte is the integer part and the low
9206 byte is the decimal.
9207 </desc>
9208 </attribute>
9209
9210 <attribute name="manufacturer" type="wstring" readonly="yes">
9211 <desc>Manufacturer string.</desc>
9212 </attribute>
9213
9214 <attribute name="product" type="wstring" readonly="yes">
9215 <desc>Product string.</desc>
9216 </attribute>
9217
9218 <attribute name="serialNumber" type="wstring" readonly="yes">
9219 <desc>Serial number string.</desc>
9220 </attribute>
9221
9222 <attribute name="address" type="wstring" readonly="yes">
9223 <desc>Host specific address of the device.</desc>
9224 </attribute>
9225
9226 <attribute name="port" type="unsigned short" readonly="yes">
9227 <desc>
9228 Host USB port number the device is physically
9229 coonected to.
9230 </desc>
9231 </attribute>
9232
9233 <attribute name="version" type="unsigned short" readonly="yes">
9234 <desc>
9235 The major USB version of the device - 1 or 2.
9236 </desc>
9237 </attribute>
9238
9239 <attribute name="portVersion" type="unsigned short" readonly="yes">
9240 <desc>
9241 The major USB version of the host USB port the device is
9242 physically coonected to - 1 or 2. For devices not connected to
9243 anything this will have the same value as the version attribute.
9244 </desc>
9245 </attribute>
9246
9247 <attribute name="remote" type="boolean" readonly="yes">
9248 <desc>
9249 Whether the device is physically connected to a remote VRDP
9250 client or to a local host machine.
9251 </desc>
9252 </attribute>
9253
9254 </interface>
9255
9256
9257 <!--
9258 // IUSBDeviceFilter
9259 /////////////////////////////////////////////////////////////////////////
9260 -->
9261
9262 <enumerator
9263 name="IUSBDeviceFilterEnumerator" type="IUSBDeviceFilter"
9264 uuid="d5109c61-93e7-4726-926b-0dee1020da56"
9265 />
9266
9267 <collection
9268 name="IUSBDeviceFilterCollection" type="IUSBDeviceFilter"
9269 enumerator="IUSBDeviceFilterEnumerator"
9270 uuid="4fa3fc99-ceb1-4bf5-a9cb-e962d825c1ef"
9271 readonly="yes"
9272 />
9273
9274 <interface
9275 name="IUSBDeviceFilter" extends="$unknown"
9276 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
9277 wsmap="managed"
9278 >
9279 <desc>
9280 The IUSBDeviceFilter interface represents an USB device filter used
9281 to perform actions on a group of USB devices.
9282
9283 This type of filters is used by running virtual machines to
9284 automatically capture selected USB devices once they are physically
9285 attached to the host computer.
9286
9287 A USB device is matched to the given device filter if and only if all
9288 attributes of the device match the corresponding attributes of the
9289 filter (that is, attributes are joined together using the logical AND
9290 operation). On the other hand, all together, filters in the list of
9291 filters carry the semantics of the logical OR operation. So if it is
9292 desirable to create a match like "this vendor id OR this product id",
9293 one needs to create two filters and specify "any match" (see below)
9294 for unused attributes.
9295
9296 All filter attributes used for matching are strings. Each string
9297 is an expression representing a set of values of the corresponding
9298 device attribute, that will match the given filter. Currently, the
9299 following filtering expressions are supported:
9300
9301 <ul>
9302 <li><i>Interval filters</i>. Used to specify valid intervals for
9303 integer device attributes (Vendor ID, Product ID and Revision).
9304 The format of the string is:
9305
9306 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
9307
9308 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
9309 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
9310 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
9311 is ommitted before a dash (<tt>-</tt>), the minimum possible integer
9312 is assumed; if <tt>n</tt> is ommitted after a dash, the maximum
9313 possible integer is assummed.
9314 </li>
9315 <li><i>Boolean filters</i>. Used to specify acceptable values for
9316 boolean device attributes. The format of the string is:
9317
9318 <tt>true|false|yes|no|0|1</tt>
9319
9320 </li>
9321 <li><i>Exact match</i>. Used to specify a single value for the given
9322 device attribute. Any string that does't start with <tt>int:</tt>
9323 represents the exact match. String device attributes are compared to
9324 this string including case of symbols. Integer attributes are first
9325 converted to a string (see individual filter attributes) and then
9326 compared ignoring case.
9327
9328 </li>
9329 <li><i>Any match</i>. Any value of the corresponding device attribute
9330 will match the given filter. An empty or <tt>null</tt> string is
9331 used to construct this type of filtering expressions.
9332
9333 </li>
9334 </ul>
9335
9336 <note>
9337 On the Windows host platform, interval filters are not currently
9338 available. Also all string filter attributes
9339 (<link to="#manufacturer"/>, <link to="#product"/>,
9340 <link to="#serialNumber"/>) are ignored, so they behave as
9341 <i>any match</i> no matter what string expression is specified.
9342 </note>
9343
9344 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
9345 </desc>
9346
9347 <attribute name="name" type="wstring">
9348 <desc>
9349 Visible name for this filter.
9350 This name is used to visually distungish one filter from another,
9351 so it can neither be <tt>null</tt> nor an empty string.
9352 </desc>
9353 </attribute>
9354
9355 <attribute name="active" type="boolean">
9356 <desc>Whether this filter active or has been temporarily disabled.</desc>
9357 </attribute>
9358
9359 <attribute name="vendorId" type="wstring">
9360 <desc>
9361 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
9362 The string representation for the <i>exact matching</i>
9363 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
9364 (including leading zeroes).
9365 </desc>
9366 </attribute>
9367
9368 <attribute name="productId" type="wstring">
9369 <desc>
9370 <link to="IUSBDevice::productId">Product ID</link> filter.
9371 The string representation for the <i>exact matching</i>
9372 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
9373 (including leading zeroes).
9374 </desc>
9375 </attribute>
9376
9377 <attribute name="revision" type="wstring">
9378 <desc>
9379 <link to="IUSBDevice::productId">Product revision number</link>
9380 filter. The string representation for the <i>exact matching</i>
9381 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
9382 of the integer part of the revision, and <tt>F</tt> is the
9383 decimal digit of its fractional part (including leading and
9384 trailing zeroes).
9385 Note that for interval filters, it's best to use the hexadecimal
9386 form, because the revision is stored as a 16 bit packed BCD value;
9387 so the expression <tt>int:0x0100-0x0199</tt> will match any
9388 revision from <tt>1.0</tt> to <tt>1.99</tt>.
9389 </desc>
9390 </attribute>
9391
9392 <attribute name="manufacturer" type="wstring">
9393 <desc>
9394 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
9395 </desc>
9396 </attribute>
9397
9398 <attribute name="product" type="wstring">
9399 <desc>
9400 <link to="IUSBDevice::product">Product</link> filter.
9401 </desc>
9402 </attribute>
9403
9404 <attribute name="serialNumber" type="wstring">
9405 <desc>
9406 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
9407 </desc>
9408 </attribute>
9409
9410 <attribute name="port" type="wstring">
9411 <desc>
9412 <link to="IUSBDevice::port">Host USB port</link> filter.
9413 </desc>
9414 </attribute>
9415
9416 <attribute name="remote" type="wstring">
9417 <desc>
9418 <link to="IUSBDevice::remote">Remote state</link> filter.
9419 <note>
9420 This filter makes sense only for machine USB filters,
9421 i.e. it is ignored by IHostUSBDeviceFilter objects.
9422 </note>
9423 </desc>
9424 </attribute>
9425
9426 <attribute name="maskedInterfaces" type="unsigned long">
9427 <desc>
9428 This is an advanced option for hiding one or more USB interfaces
9429 from the guest. The value is a bitmask where the bits that are set
9430 means the corresponding USB interface should be hidden, masked off
9431 if you like.
9432 This feature only works on Linux hosts.
9433 </desc>
9434 </attribute>
9435
9436 </interface>
9437
9438
9439 <!--
9440 // IHostUSBDevice
9441 /////////////////////////////////////////////////////////////////////////
9442 -->
9443
9444 <enum
9445 name="USBDeviceState"
9446 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
9447 >
9448 <desc>
9449 USB device state. This enumeration represents all possible states
9450 of the USB device physically attached to the host computer regarding
9451 its state on the host computer and availability to guest computers
9452 (all currently running virtual machines).
9453
9454 Once a supported USB device is attached to the host, global USB
9455 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
9456 either ignore the device, or put ot to #Held state, or do nothing. Unless
9457 the device is ignored by global filters, filters of all currently running
9458 guests (<link to="IUSBController::deviceFilters"/>) are activated that can
9459 put it to #Captured state.
9460
9461 If the device was ignored by global filters, or didn't match
9462 any filters at all (including guest ones), it is handled by the host
9463 in a normal way. In this case, the device state is determined by
9464 the host and can be one of #Unavailable, #Busy or #Available, depending on
9465 the current device usage.
9466
9467 Besides auto-capturing based on filters, the device can be manually
9468 captured by guests (<link to="IConsole::attachUSBDevice()"/>) if its
9469 state is #Busy, #Available or #Held.
9470
9471 <note>
9472 Due to differences in USB stack implementations in Linux and Win32,
9473 states #Busy and #Available are applicable only to the Linux version of
9474 the product. This also means that (<link
9475 to="IConsole::attachUSBDevice()"/>) can only succeed on Win32 if
9476 the device state is #Held.
9477 </note>
9478
9479 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
9480 </desc>
9481
9482 <const name="NotSupported" value="0">
9483 <desc>
9484 Not supported by the VirtualBox server, not available to guests.
9485 </desc>
9486 </const>
9487 <const name="Unavailable" value="1">
9488 <desc>
9489 Being used by the host computer exclusively,
9490 not available to guests.
9491 </desc>
9492 </const>
9493 <const name="Busy" value="2">
9494 <desc>
9495 Being used by the host computer, potentially available to guests.
9496 </desc>
9497 </const>
9498 <const name="Available" value="3">
9499 <desc>
9500 Not used by the host computer, available to guests.
9501 The host computer can also start using the device at any time.
9502 </desc>
9503 </const>
9504 <const name="Held" value="4">
9505 <desc>
9506 Held by the VirtualBox server (ignored by the host computer),
9507 available to guests.
9508 </desc>
9509 </const>
9510 <const name="Captured" value="5">
9511 <desc>
9512 Captured by one of the guest computers, not available
9513 to anybody else.
9514 </desc>
9515 </const>
9516 </enum>
9517
9518 <enumerator
9519 name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
9520 uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
9521 />
9522
9523 <collection
9524 name="IHostUSBDeviceCollection" type="IHostUSBDevice"
9525 enumerator="IHostUSBDeviceEnumerator"
9526 uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
9527 readonly="yes"
9528 >
9529 <method name="findById">
9530 <desc>
9531 Searches this collection for a USB device with the given UUID.
9532 <note>
9533 The method returns an error if the given UUID does not
9534 correspond to any USB device in the collection.
9535 </note>
9536 <see>IHostUSBDevice::id</see>
9537 </desc>
9538 <param name="id" type="uuid" dir="in">
9539 <desc>UUID of the USB device to search for.</desc>
9540 </param>
9541 <param name="device" type="IHostUSBDevice" dir="return">
9542 <desc>Found USB device object.</desc>
9543 </param>
9544 </method>
9545
9546 <method name="findByAddress">
9547 <desc>
9548 Searches this collection for a USB device with the given
9549 host address.
9550 <note>
9551 The method returns an error if the given address does not
9552 correspond to any USB device in the collection.
9553 </note>
9554 <see>IHostUSBDevice::address</see>
9555 </desc>
9556 <param name="name" type="wstring" dir="in">
9557 <desc>
9558 Address of the USB device (as assigned by the host) to
9559 search for.
9560 </desc>
9561 </param>
9562 <param name="device" type="IHostUSBDevice" dir="return">
9563 <desc>Found USB device object.</desc>
9564 </param>
9565 </method>
9566
9567 </collection>
9568
9569 <interface
9570 name="IHostUSBDevice" extends="IUSBDevice"
9571 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
9572 wsmap="managed"
9573 >
9574 <desc>
9575 The IHostUSBDevice interface represents a physical USB device attached
9576 to the host computer.
9577
9578 Besides properties inherited from IUSBDevice, this interface adds the
9579 <link to="#state"/> property that holds the courrent state of the USB
9580 device.
9581
9582 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
9583 </desc>
9584
9585 <attribute name="state" type="USBDeviceState" readonly="yes">
9586 <desc>
9587 Current state of the device.
9588 </desc>
9589 </attribute>
9590
9591 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
9592
9593 </interface>
9594
9595
9596 <!--
9597 // IHostUSBDeviceFilter
9598 /////////////////////////////////////////////////////////////////////////
9599 -->
9600
9601 <enum
9602 name="USBDeviceFilterAction"
9603 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
9604 >
9605 <desc>
9606 Actions for host USB device filters.
9607 <see>IHostUSBDeviceFilter, USBDeviceState</see>
9608 </desc>
9609
9610 <const name="Null" value="0">
9611 <desc><tt>null</tt> value. Never used by the API.</desc>
9612 </const>
9613 <const name="Ignore" value="1">
9614 <desc>Ignore the matched USB device.</desc>
9615 </const>
9616 <const name="Hold" value="2">
9617 <desc>Hold the matched USB device.</desc>
9618 </const>
9619 </enum>
9620
9621 <enumerator
9622 name="IHostUSBDeviceFilterEnumerator" type="IHostUSBDeviceFilter"
9623 uuid="ff735211-903e-4642-9c37-189eb44579fe"
9624 />
9625
9626 <collection
9627 name="IHostUSBDeviceFilterCollection" type="IHostUSBDeviceFilter"
9628 enumerator="IHostUSBDeviceFilterEnumerator"
9629 uuid="1a80458b-87f1-4a74-995d-04e2330119e0"
9630 readonly="yes"
9631 />
9632
9633 <interface
9634 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
9635 uuid="4cc70246-d74a-400f-8222-3900489c0374"
9636 wsmap="managed"
9637 >
9638 <desc>
9639 The IHostUSBDeviceFilter interface represents a global filter for a
9640 physical USB device used by the host computer. Used indirectly in
9641 <link to="IHost::USBDeviceFilters"/>.
9642
9643 Using filters of this type, the host computer determines the initial
9644 state of the USB device after it is physically attached to the
9645 host's USB controller.
9646
9647 <note>
9648 The <link to="#remote"/> attribute is ignored by this type of
9649 filters, because it makes sense only for
9650 <link to="IUSBController::deviceFilters">machine USB filters</link>.
9651 </note>
9652
9653 <see>IHost::USBDeviceFilters</see>
9654 </desc>
9655
9656 <attribute name="action" type="USBDeviceFilterAction">
9657 <desc>
9658 Action performed by the host when an attached USB device
9659 matches this filter.
9660 </desc>
9661 </attribute>
9662
9663 </interface>
9664
9665 <!--
9666 // IAudioAdapter
9667 /////////////////////////////////////////////////////////////////////////
9668 -->
9669
9670 <enum
9671 name="AudioDriverType"
9672 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
9673 >
9674 <desc>
9675 Host audio driver type.
9676 </desc>
9677
9678 <const name="Null" value="0">
9679 <desc><tt>null</tt> value. Also means "dummy audio driver".</desc>
9680 </const>
9681 <const name="WinMM" value="1"/>
9682 <const name="OSS" value="2"/>
9683 <const name="ALSA" value="3"/>
9684 <const name="DirectSound" value="4"/>
9685 <const name="CoreAudio" value="5"/>
9686 <const name="MMPM" value="6"/>
9687 <const name="Pulse" value="7"/>
9688 <const name="SolAudio" value="8"/>
9689 </enum>
9690
9691 <enum
9692 name="AudioControllerType"
9693 uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
9694 >
9695 <desc>
9696 Virtual audio controller type.
9697 </desc>
9698
9699 <const name="AC97" value="0"/>
9700 <const name="SB16" value="1"/>
9701 </enum>
9702
9703 <interface
9704 name="IAudioAdapter" extends="$unknown"
9705 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
9706 wsmap="managed"
9707 >
9708 <desc>
9709 The IAudioAdapter interface represents the virtual audio adapter of
9710 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
9711 </desc>
9712 <attribute name="enabled" type="boolean">
9713 <desc>
9714 Flag whether the audio adapter is present in the
9715 guest system. If disabled, the virtual guest hardware will
9716 not contain any audio adapter. Can only be changed when
9717 the VM is not running.
9718 </desc>
9719 </attribute>
9720 <attribute name="audioController" type="AudioControllerType">
9721 <desc>
9722 The audio hardware we emulate.
9723 </desc>
9724 </attribute>
9725 <attribute name="audioDriver" type="AudioDriverType">
9726 <desc>
9727 Audio driver the adapter is connected to. This setting
9728 can only be changed when the VM is not running.
9729 </desc>
9730 </attribute>
9731 </interface>
9732
9733 <!--
9734 // IVRDPServer
9735 /////////////////////////////////////////////////////////////////////////
9736 -->
9737
9738 <enum
9739 name="VRDPAuthType"
9740 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
9741 >
9742 <desc>
9743 VRDP authentication type.
9744 </desc>
9745
9746 <const name="Null" value="0">
9747 <desc><tt>null</tt> value. Also means "no authentication".</desc>
9748 </const>
9749 <const name="External" value="1"/>
9750 <const name="Guest" value="2"/>
9751 </enum>
9752
9753 <interface
9754 name="IVRDPServer" extends="$unknown"
9755 uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
9756 wsmap="managed"
9757 >
9758 <attribute name="enabled" type="boolean">
9759 <desc>VRDP server status.</desc>
9760 </attribute>
9761
9762 <attribute name="port" type="unsigned long">
9763 <desc>
9764 VRDP server port number.
9765 <note>
9766 Setting the value of this property to <tt>0</tt> will reset the port
9767 number to the default value which is
9768 currently <tt>3389</tt>. Reading this property will always return a
9769 real port number, even after it has been set to <tt>0</tt> (in which
9770 case the default port is returned).
9771 </note>
9772 </desc>
9773 </attribute>
9774
9775 <attribute name="netAddress" type="wstring">
9776 <desc>VRDP server address.</desc>
9777 </attribute>
9778
9779 <attribute name="authType" type="VRDPAuthType">
9780 <desc>VRDP authentication method.</desc>
9781 </attribute>
9782
9783 <attribute name="authTimeout" type="unsigned long">
9784 <desc>Timeout for guest authentication. Milliseconds.</desc>
9785 </attribute>
9786
9787 <attribute name="allowMultiConnection" type="boolean">
9788 <desc>
9789 Flag whether multiple simultaneous connections to the VM are permitted.
9790 Note that this will be replaced by a more powerful mechanism in the future.
9791 </desc>
9792 </attribute>
9793
9794 <attribute name="reuseSingleConnection" type="boolean">
9795 <desc>
9796 Flag whether the existing connection must be dropped and a new connection
9797 must be established by the VRDP server, when a new client connects in single
9798 connection mode.
9799 </desc>
9800 </attribute>
9801
9802 </interface>
9803
9804
9805 <!--
9806 // ISharedFolder
9807 /////////////////////////////////////////////////////////////////////////
9808 -->
9809
9810 <enumerator
9811 name="ISharedFolderEnumerator" type="ISharedFolder"
9812 uuid="1d420fd8-e7c1-4511-abf4-a504dc6d0cbf"
9813 />
9814
9815 <collection
9816 name="ISharedFolderCollection" type="ISharedFolder"
9817 enumerator="ISharedFolderEnumerator"
9818 uuid="9c7e2282-bb16-4fa7-9138-f383c5e02353"
9819 readonly="yes">
9820
9821 <method name="findByName">
9822 <desc>
9823 Searches this collection for a shared folder with the given logical
9824 name.
9825 <note>
9826 The method returns an error if the given name does not correspond to
9827 any shared folder in the collection.
9828 </note>
9829 </desc>
9830 <param name="name" type="wstring" dir="in">
9831 <desc>Logical name of the shared folder to search for</desc>
9832 </param>
9833 <param name="sharedFolder" type="ISharedFolder" dir="return">
9834 <desc>Found shared folder object</desc>
9835 </param>
9836 </method>
9837
9838 </collection>
9839
9840 <interface
9841 name="ISharedFolder" extends="$unknown"
9842 uuid="8b0c5f70-9139-4f97-a421-64d5e9c335d5"
9843 wsmap="struct"
9844 >
9845 <desc>
9846 The ISharedFolder interface represents a folder in the host computer's
9847 file system accessible from the guest OS running inside a virtual
9848 machine using an associated logical name.
9849
9850 There are three types of shared folders:
9851 <ul>
9852 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
9853 folders available to all virtual machines.</li>
9854 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
9855 VM-specific shared folders available to the given virtual machine at
9856 startup.</li>
9857 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
9858 VM-specific shared folders created in the session context (for
9859 example, when the virtual machine is running) and automatically
9860 discarded when the session is closed (the VM is powered off).</li>
9861 </ul>
9862
9863 Logical names of shared folders must be unique within the given scope
9864 (global, permanent or transient). However, they do not need to be unique
9865 across scopes. In this case, the definitioin of the shared folder in a
9866 more specific scope takes precedence over definitions in all other
9867 scopes. The order of precedence is (more specific to more general):
9868 <ol>
9869 <li>Transient definitions</li>
9870 <li>Permanent definitions</li>
9871 <li>Global definitions</li>
9872 </ol>
9873
9874 For example, if MyMachine has a shared folder named
9875 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then cretaing a
9876 transient shared folder named <tt>C_DRIVE</tt> (that points
9877 to <tt>C:\\\\WINDOWS</tt>) will change the definition
9878 of <tt>C_DRIVE</tt> in the guest OS so
9879 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
9880 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
9881 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
9882 the prevoious (permanent) definition of <tt>C_DRIVE</tt> that points
9883 to <tt>C:\\</tt> if it still exists.
9884
9885 Note that permanent and transient shared folders of different machines
9886 are in different name spaces, so they don't overlap and don't need to
9887 have unique logical names.
9888
9889 <note>
9890 Global shared folders are not implemented in the current vesion of the
9891 product.
9892 </note>
9893 </desc>
9894
9895 <attribute name="name" type="wstring" readonly="yes">
9896 <desc>Logical name of the shared folder.</desc>
9897 </attribute>
9898
9899 <attribute name="hostPath" type="wstring" readonly="yes">
9900 <desc>Full path to the shared folder in the host file system.</desc>
9901 </attribute>
9902
9903 <attribute name="accessible" type="boolean" readonly="yes">
9904 <desc>
9905 Whether the folder defined by the host path is currently
9906 accessible or not.
9907 For example, the folder can be unaccessible if it is placed
9908 on the network share that is not available by the time
9909 this property is read.
9910 </desc>
9911 </attribute>
9912
9913 <attribute name="writable" type="boolean" readonly="yes">
9914 <desc>
9915 Whether the folder defined by the host path is writable or
9916 not.
9917 </desc>
9918 </attribute>
9919
9920 </interface>
9921
9922 <!--
9923 // ISession
9924 /////////////////////////////////////////////////////////////////////////
9925 -->
9926
9927 <interface
9928 name="IInternalSessionControl" extends="$unknown"
9929 uuid="2581845a-5a9d-45fb-bc3b-2476552dd970"
9930 internal="yes"
9931 wsmap="suppress"
9932 >
9933 <method name="getPID">
9934 <desc>PID of the process that has created this Session object.
9935 </desc>
9936 <param name="pid" type="unsigned long" dir="return"/>
9937 </method>
9938
9939 <method name="getRemoteConsole">
9940 <desc>Returns the console object suitable for remote control.</desc>
9941 <param name="console" type="IConsole" dir="return"/>
9942 </method>
9943
9944 <method name="assignMachine">
9945 <desc>
9946 Assigns the machine object associated with this direct-type
9947 session or informs the session that it will be a remote one
9948 (if machine = NULL).
9949 </desc>
9950 <param name="machine" type="IMachine" dir="in"/>
9951 </method>
9952
9953 <method name="assignRemoteMachine">
9954 <desc>
9955 Assigns the machine and the (remote) console object associated with
9956 this remote-type session.
9957 </desc>
9958 <param name="machine" type="IMachine" dir="in"/>
9959 <param name="console" type="IConsole" dir="in"/>
9960 </method>
9961
9962 <method name="updateMachineState">
9963 <desc>
9964 Updates the machine state in the VM process.
9965 Must be called only in certain cases
9966 (see the method implementation).
9967 </desc>
9968 <param name="aMachineState" type="MachineState" dir="in"/>
9969 </method>
9970
9971 <method name="uninitialize">
9972 <desc>
9973 Uninitializes (closes) this session. Used by VirtualBox to close
9974 the corresponding remote session when the direct session dies
9975 or gets closed.
9976 </desc>
9977 </method>
9978
9979 <method name="onDVDDriveChange">
9980 <desc>
9981 Triggered when settings of the DVD drive object of the
9982 associated virtual machine have changed.
9983 </desc>
9984 </method>
9985
9986 <method name="onFloppyDriveChange">
9987 <desc>
9988 Triggered when settings of the floppy drive object of the
9989 associated virtual machine have changed.
9990 </desc>
9991 </method>
9992
9993 <method name="onNetworkAdapterChange">
9994 <desc>
9995 Triggered when settings of a network adapter of the
9996 associated virtual machine have changed.
9997 </desc>
9998 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
9999 </method>
10000
10001 <method name="onSerialPortChange">
10002 <desc>
10003 Triggered when settions of a serial port of the
10004 associated virtual machine have changed.
10005 </desc>
10006 <param name="serialPort" type="ISerialPort" dir="in"/>
10007 </method>
10008
10009 <method name="onParallelPortChange">
10010 <desc>
10011 Triggered when settings of a parallel port of the
10012 associated virtual machine have changed.
10013 </desc>
10014 <param name="parallelPort" type="IParallelPort" dir="in"/>
10015 </method>
10016
10017 <method name="onVRDPServerChange">
10018 <desc>
10019 Triggered when settings of the VRDP server object of the
10020 associated virtual machine have changed.
10021 </desc>
10022 </method>
10023
10024 <method name="onUSBControllerChange">
10025 <desc>
10026 Triggered when settings of the USB controller object of the
10027 associated virtual machine have changed.
10028 </desc>
10029 </method>
10030
10031 <method name="onSharedFolderChange">
10032 <desc>
10033 Triggered when a permanent (global or machine) shared folder has been
10034 created or removed.
10035 <note>
10036 We don't pass shared folder parameters in this notification because
10037 the order in which parallel notifications are delivered is not defined,
10038 therefore it could happen that these parameters were outdated by the
10039 time of processing this notification.
10040 </note>
10041 </desc>
10042 <param name="global" type="boolean" dir="in"/>
10043 </method>
10044
10045 <method name="onUSBDeviceAttach">
10046 <desc>
10047 Triggered when a request to capture a USB device (as a result
10048 of matched USB filters or direct call to
10049 <link to="IConsole::attachUSBDevice"/>) has completed.
10050 A @c null @a error object means success, otherwise it
10051 describes a failure.
10052 </desc>
10053 <param name="device" type="IUSBDevice" dir="in"/>
10054 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
10055 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
10056 </method>
10057
10058 <method name="onUSBDeviceDetach">
10059 <desc>
10060 Triggered when a request to release the USB device (as a result
10061 of machine termination or direct call to
10062 <link to="IConsole::detachUSBDevice"/>) has completed.
10063 A @c null @a error object means success, otherwise it
10064 </desc>
10065 <param name="id" type="uuid" dir="in"/>
10066 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
10067 </method>
10068
10069 <method name="onShowWindow">
10070 <desc>
10071 Called by <link to="IMachine::canShowConsoleWindow()"/> and by
10072 <link to="IMachine::showConsoleWindow()"/> in order to notify
10073 console callbacks
10074 <link to="IConsoleCallback::onCanShowWindow()"/>
10075 and <link to="IConsoleCallback::onShowWindow()"/>.
10076 </desc>
10077 <param name="check" type="boolean" dir="in"/>
10078 <param name="canShow" type="boolean" dir="out"/>
10079 <param name="winId" type="unsigned long long" dir="out"/>
10080 </method>
10081
10082 <method name="accessGuestProperty">
10083 <desc>
10084 Called by <link to="IMachine::getGuestProperty()"/> and by
10085 <link to="IMachine::setGuestProperty()"/> in order to read and
10086 modify guest properties.
10087 </desc>
10088 <param name="name" type="wstring" dir="in"/>
10089 <param name="value" type="wstring" dir="in"/>
10090 <param name="flags" type="wstring" dir="in"/>
10091 <param name="isSetter" type="boolean" dir="in"/>
10092 <param name="retValue" type="wstring" dir="out"/>
10093 <param name="retTimestamp" type="unsigned long long" dir="out"/>
10094 <param name="retFlags" type="wstring" dir="out"/>
10095 </method>
10096
10097 <method name="enumerateGuestProperties">
10098 <desc>
10099 Return a list of the guest properties matching a set of patterns along
10100 with their values, timestamps and flags.
10101 </desc>
10102 <param name="patterns" type="wstring" dir="in">
10103 <desc>
10104 The patterns to match the properties against as a comma-separated
10105 string. If this is empty, all properties currently set will be
10106 returned.
10107 </desc>
10108 </param>
10109 <param name="key" type="wstring" dir="out" safearray="yes">
10110 <desc>
10111 The key names of the properties returned.
10112 </desc>
10113 </param>
10114 <param name="value" type="wstring" dir="out" safearray="yes">
10115 <desc>
10116 The values of the properties returned. The array entries match the
10117 corresponding entries in the @a key array.
10118 </desc>
10119 </param>
10120 <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
10121 <desc>
10122 The timestamps of the properties returned. The array entries match
10123 the corresponding entries in the @a key array.
10124 </desc>
10125 </param>
10126 <param name="flags" type="wstring" dir="out" safearray="yes">
10127 <desc>
10128 The flags of the properties returned. The array entries match the
10129 corresponding entries in the @a key array.
10130 </desc>
10131 </param>
10132 </method>
10133
10134 </interface>
10135
10136 <interface
10137 name="ISession" extends="$dispatched"
10138 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
10139 wsmap="managed"
10140 >
10141 <desc>
10142 The ISession interface represents a serialization primitive for virtual
10143 machines.
10144
10145 Within VirtualBox, every time one wishes to manipulate a virtual machine
10146 (for example, change its settings or start execution), an instance of
10147 the ISession interface is required. One first creates a local session
10148 object that implements the ISession interface and then passes the
10149 created object with the method call that opens the given session and
10150 thus initiates the machine manipulation. The session serves several
10151 purposes: it identifies to the inter-process VirtualBox code which
10152 process is currently working with the virtual machine, and it ensures
10153 that there are no incompatible requests from several processes for the
10154 same virtual machine.
10155
10156 How sessions objects are used depends on whether you use the Main API
10157 via COM or via the web service:
10158
10159 <ul>
10160 <li>When using the COM API directly, an object of the Session class from the
10161 VirtualBox type library needs to be created. In regular COM C++ client code,
10162 this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
10163 This object will then act as a local session object in further calls to open
10164 a session.
10165 </li>
10166
10167 <li>In the webservice, the session manager (IWebsessionManager) instead creates
10168 one session object automatically when <link to="IWebsessionManager::logon" />
10169 is called. A managed object reference to that session object can be retrieved by
10170 calling <link to="IWebsessionManager::getSessionObject" />. This session object
10171 reference can then be used to open sessions.
10172 </li>
10173 </ul>
10174
10175 Sessions are mainly used in two variations:
10176
10177 <ul>
10178 <li>
10179 To start a virtual machine in a separate process, one would call
10180 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
10181 object as its first parameter. This session then identifies the caller
10182 and lets him control the started machine (for example, pause machine
10183 execution or power it down) as well as be notified about machine
10184 execution state changes.
10185 </li>
10186
10187 <li>To alter machine settings, or to start machine execution within the
10188 current process, one needs to open a direct session for the machine first by
10189 calling <link to="IVirtualBox::openSession"/>. While a direct session
10190 is open within one process, no any other process may open another direct
10191 session for the same machine. This prevents the machine from being changed
10192 by other processes while it is running or while the machine is being configured.
10193 </li>
10194 </ul>
10195
10196 One also can attach to an existing direct session alreay opened by
10197 another process (for example, in order to send a control request to the
10198 virtual machine such as the pause or the reset request). This is done by
10199 calling <link to="IVirtualBox::openExistingSession"/>.
10200
10201 <note>
10202 Unless you are trying to write a new VirtualBox front-end that
10203 performs direct machine execution (like the VirtualBox or VBoxSDL
10204 front-ends), don't call <link to="IConsole::powerUp"/> in a direct
10205 session opened by <link to="IVirtualBox::openSession"/> and use this
10206 session only to change virtual machine settings. If you simply want to
10207 start virtual machine execution using one of the existing front-ends
10208 (for example the VirtualBox GUI or headless server), simply use
10209 <link to="IVirtualBox::openRemoteSession"/>; these front-ends
10210 will power up the machine automatically for you.
10211 </note>
10212 </desc>
10213
10214 <attribute name="state" type="SessionState" readonly="yes">
10215 <desc>Current state of this session.</desc>
10216 </attribute>
10217
10218 <attribute name="type" type="SessionType" readonly="yes">
10219 <desc>
10220 Type of this session. The value of this attribute is valid only
10221 if the session is currently open (i.e. its #state is SessionType::SessionOpen),
10222 otherwise an error will be returned.
10223 </desc>
10224 </attribute>
10225
10226 <attribute name="machine" type="IMachine" readonly="yes">
10227 <desc>Machine object associated with this session.</desc>
10228 </attribute>
10229
10230 <attribute name="console" type="IConsole" readonly="yes">
10231 <desc>Console object associated with this session.</desc>
10232 </attribute>
10233
10234 <method name="close">
10235 <desc>
10236 Closes this session.
10237 <note>
10238 If a direct session for a machine opened with
10239 <link to="IVirtualBox::openSession()"/> is not explicitly
10240 closed when the application terminates, the state of the
10241 machine will be set to <link to="MachineState::Aborted"/>
10242 on the server. Generally, it is recommended to close all
10243 open sessions explicitly before terminating the application
10244 (no matter what is the reason of the termination).
10245 </note>
10246 </desc>
10247 </method>
10248
10249 </interface>
10250
10251 <!--
10252 // ISATAController
10253 /////////////////////////////////////////////////////////////////////////
10254 -->
10255
10256 <interface
10257 name="ISATAController" extends="$unknown"
10258 uuid="9a4b868b-1376-4533-8ef5-065b8e8cedff"
10259 wsmap="managed"
10260 >
10261 <attribute name="enabled" type="boolean">
10262 <desc>
10263 Flag whether the SATA controller is present in the
10264 guest system. If disabled, the virtual guest hardware will
10265 not contain any SATA controller. Can only be changed when
10266 the VM is powered off.
10267 </desc>
10268 </attribute>
10269
10270 <attribute name="portCount" type="unsigned long">
10271 <desc>
10272 The number of usable ports on the sata controller.
10273 It ranges from 1 to 30.
10274 </desc>
10275 </attribute>
10276
10277 <method name="GetIDEEmulationPort">
10278 <desc>Gets the corresponding port number which is emulated as an IDE device.</desc>
10279 <param name="devicePosition" type="long" dir="in"/>
10280 <param name="portNumber" type="long" dir="return"/>
10281 </method>
10282
10283 <method name="SetIDEEmulationPort">
10284 <desc>Sets the port number which is emulated as an IDE device.</desc>
10285 <param name="devicePosition" type="long" dir="in"/>
10286 <param name="portNumber" type="long" dir="in"/>
10287 </method>
10288
10289 </interface>
10290
10291<if target="wsdl">
10292
10293 <!--
10294 // IManagedObjectRef
10295 /////////////////////////////////////////////////////////////////////////
10296 -->
10297
10298 <interface
10299 name="IManagedObjectRef" extends="$unknown"
10300 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
10301 internal="yes"
10302 wsmap="managed"
10303 wscpp="hardcoded"
10304 >
10305 <desc>
10306 Managed object reference.
10307
10308 Only within the webservice, a managed object reference (which is really
10309 an opaque number) allows a webservice client to address an object
10310 that lives in the address space of the webservice server.
10311
10312 Behind each managed object reference, there is a COM object that lives
10313 in the webservice server's address space. The COM object is not freed
10314 until the managed object reference is released, either by an explicit
10315 call to <link to="IManagedObjectRef::release" /> or by logging off from
10316 the webservice (<link to="IWebsessionManager::logoff" />), which releases
10317 all objects created during the webservice session.
10318
10319 Whenever a method call of the VirtualBox API returns a COM object, the
10320 webservice representation of that method will instead return a
10321 managed object reference, which can then be used to invoke methods
10322 on that object.
10323 </desc>
10324
10325 <method name="getInterfaceName">
10326 <desc>
10327 Returns the name of the interface that this managed object represents,
10328 for example, "IMachine", as a string.
10329 </desc>
10330 <param name="return" type="wstring" dir="return"/>
10331 </method>
10332
10333 <method name="release">
10334 <desc>
10335 Releases this managed object reference and frees the resources that
10336 were allocated for it in the webservice server process. After calling
10337 this method, the identifier of the reference can no longer be used.
10338 </desc>
10339 </method>
10340
10341 </interface>
10342
10343 <!--
10344 // IWebsessionManager
10345 /////////////////////////////////////////////////////////////////////////
10346 -->
10347
10348 <interface
10349 name="IWebsessionManager" extends="$unknown"
10350 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
10351 internal="yes"
10352 wsmap="global"
10353 wscpp="hardcoded"
10354 >
10355 <desc>
10356 Websession manager. This provides essential services
10357 to webservice clients.
10358 </desc>
10359 <method name="logon">
10360 <desc>
10361 Logs a new client onto the webservice and returns a managed object reference to
10362 the IVirtualBox instance, which the client can then use as a basis to further
10363 queries, since all calls to the VirtualBox API are based on the IVirtualBox
10364 interface, in one way or the other.
10365 </desc>
10366 <param name="username" type="wstring" dir="in"/>
10367 <param name="password" type="wstring" dir="in"/>
10368 <param name="return" type="IVirtualBox" dir="return"/>
10369 </method>
10370
10371 <method name="getSessionObject">
10372 <desc>
10373 Returns a managed object reference to the internal ISession object that was created
10374 for this web service session when the client logged on.
10375
10376 <see>ISession</see>
10377 </desc>
10378 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
10379 <param name="return" type="ISession" dir="return"/>
10380 </method>
10381
10382 <method name="logoff">
10383 <desc>
10384 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
10385 and destroys all resources associated with the session (most importantly, all
10386 managed objects created in the server while the session was active).
10387 </desc>
10388 <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
10389 </method>
10390
10391 </interface>
10392
10393</if>
10394
10395 <!--
10396 // IPerformanceCollector & friends
10397 /////////////////////////////////////////////////////////////////////////
10398 -->
10399
10400 <interface
10401 name="IPerformanceMetric" extends="$unknown"
10402 uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
10403 >
10404 <desc>
10405 The IPerformanceMetric interface represents parameters of the given
10406 performance metric.
10407 </desc>
10408
10409 <attribute name="metricName" type="wstring" readonly="yes">
10410 <desc>
10411 Name of the metric.
10412 </desc>
10413 </attribute>
10414
10415 <attribute name="object" type="$unknown" readonly="yes">
10416 <desc>
10417 Object this metric belongs to.
10418 </desc>
10419 </attribute>
10420
10421 <attribute name="description" type="wstring" readonly="yes">
10422 <desc>
10423 Textual description of the metric.
10424 </desc>
10425 </attribute>
10426
10427 <attribute name="period" type="unsigned long" readonly="yes">
10428 <desc>
10429 Time interval between samples, measured in seconds.
10430 </desc>
10431 </attribute>
10432
10433 <attribute name="count" type="unsigned long" readonly="yes">
10434 <desc>
10435 Number of recent samples retained by the performance collector for this
10436 metric.
10437
10438 When the collected sample count exceeds this number, older samples
10439 are discarded.
10440 </desc>
10441 </attribute>
10442
10443 <attribute name="unit" type="wstring" readonly="yes">
10444 <desc>
10445 Unit of measurement.
10446 </desc>
10447 </attribute>
10448
10449 <attribute name="minimumValue" type="long" readonly="yes">
10450 <desc>
10451 Minimum possible value of this metric.
10452 </desc>
10453 </attribute>
10454
10455 <attribute name="maximumValue" type="long" readonly="yes">
10456 <desc>
10457 Maximum possible value of this metric.
10458 </desc>
10459 </attribute>
10460 </interface>
10461
10462 <interface
10463 name="IPerformanceCollector" extends="$unknown"
10464 uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
10465 wsmap="managed"
10466 >
10467 <desc>
10468 The IPerformanceCollector interface represents a service that collects and
10469 stores performance metrics data.
10470
10471 Performance metrics are associated with objects like IHost and
10472 IMachine. Each object has a distinct set of performance metrics.
10473 The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
10474
10475 Metric data are collected at the specified intervals and are retained
10476 internally. The interval and the number of samples retained can be set
10477 with <link to="IPerformanceCollector::setupMetrics" />.
10478
10479 Metrics are organized hierarchically, each level separated by slash (/).
10480 General scheme for metric name is
10481 "Category/Metric[/SubMetric][:aggregation]". For example CPU/Load/User:avg
10482 metric name stands for: CPU category, Load metric, User submetric, average
10483 aggregate. An aggregate function is computed over all retained data. Valid
10484 aggregate functions are:
10485
10486 <ul>
10487 <li>avg -- average</li>
10488 <li>min -- minimum</li>
10489 <li>max -- maximum</li>
10490 </ul>
10491
10492 "Category/Metric" together form base metric name. A base metric is the
10493 smallest unit for which a sampling interval and the number of retained
10494 samples can be set. Only base metrics can be enabled and disabled. All
10495 sub-metrics are collected when their base metric is collected.
10496 Collected values for any set of sub-metrics can be queried with
10497 <link to="IPerformanceCollector::queryMetricsData" />. When setting up
10498 metric parameters, querying metric data, enabling or disabling metrics
10499 wildcards can be used in metric names to specify a subset of metrics. For
10500 example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
10501 averages can be queried using <tt>*:avg</tt> and so on. To query metric
10502 values without aggregates <tt>*:</tt> can be used.
10503
10504 The valid names for base metrics are:
10505
10506 <ul>
10507 <li>CPU/Load</li>
10508 <li>CPU/MHz</li>
10509 <li>RAM/Usage</li>
10510 </ul>
10511
10512 The general sequence for collecting and retrieving the metrics is:
10513 <ul>
10514 <li>
10515 Obtain an instance of IPerfromanceCollector with
10516 <link to="IVirtualBox::performanceCollector" />
10517 </li>
10518 <li>
10519 Allocate and populate an array with references to objects the metrics
10520 will be collected for. Use references to IHost and IMachine objects.
10521 </li>
10522 <li>
10523 Allocate and populate an array with base metric names the data will be
10524 collected for.
10525 </li>
10526 <li>
10527 Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
10528 metric data will be collected and stored.
10529 </li>
10530 <li>
10531 Wait for the data to get collected.
10532 </li>
10533 <li>
10534 Allocate and populate an array with references to objects the metric
10535 values will be queried for. You can re-use the object array used for
10536 setting base metrics.
10537 </li>
10538 <li>
10539 Allocate and populate an array with metric names the data will be
10540 collected for. Note that metric names differ from base metric names.
10541 </li>
10542 <li>
10543 Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
10544 have been collected so far are returned. Note that the values are still
10545 retained internally and data collection continues.
10546 </li>
10547 </ul>
10548
10549 For an example of usage refer to the following files in VirtualBox SDK:
10550 <ul>
10551 <li>
10552 Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
10553 </li>
10554 <li>
10555 Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
10556 </li>
10557 </ul>
10558 </desc>
10559
10560 <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
10561 <desc>
10562 Array of unique names of metrics.
10563
10564 This array represents all metrics supported by the performance
10565 collector. Individual objects do not necessarily support all of them.
10566 <link to="IPerformanceCollector::getMetrics"/> can be used to get the
10567 list of supported metrics for a particular object.
10568 </desc>
10569 </attribute>
10570
10571 <method name="getMetrics">
10572 <desc>
10573 Returns parameters of specified metrics for a set of objects.
10574 <note>
10575 @c Null metrics array means all metrics. @c Null object array means
10576 all existing objects.
10577 </note>
10578 </desc>
10579 <param name="metricNames" type="wstring" dir="in" safearray="yes">
10580 <desc>
10581 Metric name filter. Currently, only a comma-separated list of metrics
10582 is supported.
10583 </desc>
10584 </param>
10585 <param name="objects" type="$unknown" dir="in" safearray="yes">
10586 <desc>
10587 Set of objects to return metric parameters for.
10588 </desc>
10589 </param>
10590 <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
10591 <desc>
10592 Array of returned metric parameters.
10593 </desc>
10594 </param>
10595 </method>
10596
10597 <method name="setupMetrics">
10598 <desc>
10599 Sets parameters of specified base metrics for a set of objects. Returns
10600 an array of <link to="IPerformanceMetric" /> describing the metrics have
10601 been affected.
10602 <note>
10603 @c Null or empty metric name array means all metrics. @c Null or empty
10604 object array means all existing objects. If metric name array contains
10605 a single element and object array contains many, the single metric
10606 name array element is applied to each object array element to form
10607 metric/object pairs.
10608 </note>
10609 </desc>
10610 <param name="metricNames" type="wstring" dir="in" safearray="yes">
10611 <desc>
10612 Metric name filter. Comma-separated list of metrics with wildcard
10613 support.
10614 </desc>
10615 </param>
10616 <param name="objects" type="$unknown" dir="in" safearray="yes">
10617 <desc>
10618 Set of objects to setup metric parameters for.
10619 </desc>
10620 </param>
10621 <param name="period" type="unsigned long" dir="in">
10622 <desc>
10623 Time interval in seconds between two consecutive samples of performace
10624 data.
10625 </desc>
10626 </param>
10627 <param name="count" type="unsigned long" dir="in">
10628 <desc>
10629 Number of samples to retain in performance data history. Older samples
10630 get discarded.
10631 </desc>
10632 </param>
10633 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
10634 <desc>
10635 Array of metrics that have been modified by the call to this method.
10636 </desc>
10637 </param>
10638 </method>
10639
10640 <method name="enableMetrics">
10641 <desc>
10642 Turns on collecting specified base metrics. Returns an array of
10643 <link to="IPerformanceMetric" /> describing the metrics have been
10644 affected.
10645 <note>
10646 @c Null or empty metric name array means all metrics. @c Null or empty
10647 object array means all existing objects. If metric name array contains
10648 a single element and object array contains many, the single metric
10649 name array element is applied to each object array element to form
10650 metric/object pairs.
10651 </note>
10652 </desc>
10653 <param name="metricNames" type="wstring" dir="in" safearray="yes">
10654 <desc>
10655 Metric name filter. Comma-separated list of metrics with wildcard
10656 support.
10657 </desc>
10658 </param>
10659 <param name="objects" type="$unknown" dir="in" safearray="yes">
10660 <desc>
10661 Set of objects to enable metrics for.
10662 </desc>
10663 </param>
10664 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
10665 <desc>
10666 Array of metrics that have been modified by the call to this method.
10667 </desc>
10668 </param>
10669 </method>
10670
10671 <method name="disableMetrics">
10672 <desc>
10673 Turns off collecting specified base metrics. Returns an array of
10674 <link to="IPerformanceMetric" /> describing the metrics have been
10675 affected.
10676 <note>
10677 @c Null or empty metric name array means all metrics. @c Null or empty
10678 object array means all existing objects. If metric name array contains
10679 a single element and object array contains many, the single metric
10680 name array element is applied to each object array element to form
10681 metric/object pairs.
10682 </note>
10683 </desc>
10684 <param name="metricNames" type="wstring" dir="in" safearray="yes">
10685 <desc>
10686 Metric name filter. Comma-separated list of metrics with wildcard
10687 support.
10688 </desc>
10689 </param>
10690 <param name="objects" type="$unknown" dir="in" safearray="yes">
10691 <desc>
10692 Set of objects to disable metrics for.
10693 </desc>
10694 </param>
10695 <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
10696 <desc>
10697 Array of metrics that have been modified by the call to this method.
10698 </desc>
10699 </param>
10700 </method>
10701
10702 <method name="queryMetricsData">
10703 <desc>
10704 Queries collected metrics data for a set of objects.
10705
10706 The data itself and related metric information are returned in seven
10707 parallel and one flattened array of arrays. Elements of
10708 <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
10709 returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
10710 the same index describe one set of values corresponding to a single
10711 metric.
10712
10713 The <tt>returnData</tt> parameter is a flattened array of arrays. Each
10714 start and length of a sub-array is indicated by
10715 <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
10716 value for metric <tt>metricNames[i]</tt> is at
10717 <tt>returnData[returnIndices[i]]</tt>.
10718
10719 <note>
10720 @c Null or empty metric name array means all metrics. @c Null or empty
10721 object array means all existing objects. If metric name array contains
10722 a single element and object array contains many, the single metric
10723 name array element is applied to each object array element to form
10724 metric/object pairs.
10725 </note>
10726 <note>
10727 Data collection continues behind the scenes after call to @c
10728 queryMetricsData. The return data can be seen as the snapshot of
10729 the current state at the time of @c queryMetricsData call. The
10730 internally kept metric values are not cleared by the call. This makes
10731 possible querying different subsets of metrics or aggregates with
10732 subsequent calls. If periodic querying is needed it is highly
10733 suggested to query the values with @c interval*count period to avoid
10734 confusion. This way a completely new set of data values will be
10735 provided by each query.
10736 </note>
10737 </desc>
10738 <param name="metricNames" type="wstring" dir="in" safearray="yes">
10739 <desc>
10740 Metric name filter. Comma-separated list of metrics with wildcard
10741 support.
10742 </desc>
10743 </param>
10744 <param name="objects" type="$unknown" dir="in" safearray="yes">
10745 <desc>
10746 Set of objects to query metrics for.
10747 </desc>
10748 </param>
10749 <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
10750 <desc>
10751 Names of metrics returned in @c returnData.
10752 </desc>
10753 </param>
10754 <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
10755 <desc>
10756 Objects associated with metrics returned in @c returnData.
10757 </desc>
10758 </param>
10759 <param name="returnUnits" type="wstring" dir="out" safearray="yes">
10760 <desc>
10761 Units of measurement for each returned metric.
10762 </desc>
10763 </param>
10764 <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
10765 <desc>
10766 Divisor that should be applied to return values in order to get
10767 floating point values. For example:
10768 <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
10769 will retrieve the floating point value of i-th sample of the first
10770 metric.
10771 </desc>
10772 </param>
10773 <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
10774 <desc>
10775 Sequence numbers of the first elements of value sequences of particular metrics
10776 returned in @c returnData. For aggregate metrics it is the sequence number of
10777 the sample the aggregate started calculation from.
10778 </desc>
10779 </param>
10780 <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
10781 <desc>
10782 Indices of the first elements of value sequences of particular metrics
10783 returned in @c returnData.
10784 </desc>
10785 </param>
10786 <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
10787 <desc>
10788 Lengths of value sequences of particular metrics.
10789 </desc>
10790 </param>
10791 <param name="returnData" type="long" dir="return" safearray="yes">
10792 <desc>
10793 Flattened array of all metric data containing sequences of values for
10794 each metric.
10795 </desc>
10796 </param>
10797 </method>
10798
10799 </interface>
10800
10801 <module name="VBoxSVC" context="LocalServer">
10802 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
10803 namespace="virtualbox.org">
10804 <interface name="IVirtualBox" default="yes"/>
10805 </class>
10806 </module>
10807
10808 <module name="VBoxC" context="InprocServer" threadingModel="Free">
10809 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
10810 namespace="virtualbox.org">
10811 <interface name="ISession" default="yes"/>
10812 </class>
10813 </module>
10814
10815</library>
10816
10817</idl>
Note: See TracBrowser for help on using the repository browser.

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