ConsoleImpl.h revision 2deb7f514062c84c5bd603a4d17a6ceb1338628f
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * VBox Console COM Class definition
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * Copyright (C) 2006-2008 Sun Microsystems, Inc.
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * available from http://www.virtualbox.org. This file is free software;
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * you can redistribute it and/or modify it under the terms of the GNU
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * General Public License (GPL) as published by the Free Software
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * additional information or have any questions.
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync# include <VBox/HostServices/GuestPropertySvc.h> /* For the property notification callback */
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync///////////////////////////////////////////////////////////////////////////////
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * Checks the availability of the underlying VM device driver corresponding
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * to the COM interface (IKeyboard, IMouse, IDisplay, etc.). When the driver is
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * not available (NULL), sets error info and returns returns E_ACCESSDENIED.
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * The translatable error message is defined in null context.
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * Intended to used only within Console children (i.e. Keyboard, Mouse,
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * Display, etc.).
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * @param drv driver pointer to check (compare it with NULL)
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync return setError (E_ACCESSDENIED, tr ("The console is not powered up")); \
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync } while (0)
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync///////////////////////////////////////////////////////////////////////////////
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync/** IConsole implementation class */
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync public VirtualBoxSupportErrorInfoImpl <Console, IConsole>,
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync // public initializers/uninitializers for internal purposes only
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT init (IMachine *aMachine, IInternalMachineControl *aControl);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync // IConsole properties
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync STDMETHOD(COMGETTER(Machine)) (IMachine **aMachine);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync STDMETHOD(COMGETTER(State)) (MachineState_T *aMachineState);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync STDMETHOD(COMGETTER(Keyboard)) (IKeyboard **aKeyboard);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync STDMETHOD(COMGETTER(Display)) (IDisplay **aDisplay);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync STDMETHOD(COMGETTER(Debugger)) (IMachineDebugger **aDebugger);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync STDMETHOD(COMGETTER(USBDevices)) (ComSafeArrayOut (IUSBDevice *, aUSBDevices));
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync STDMETHOD(COMGETTER(RemoteUSBDevices)) (ComSafeArrayOut (IHostUSBDevice *, aRemoteUSBDevices));
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync STDMETHOD(COMGETTER(RemoteDisplayInfo)) (IRemoteDisplayInfo **aRemoteDisplayInfo);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync STDMETHOD(COMGETTER(SharedFolders)) (ComSafeArrayOut (ISharedFolder *, aSharedFolders));
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync // IConsole methods
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync STDMETHOD(GetGuestEnteredACPIMode)(BOOL *aEntered);
09e11be404479b989812ad9da85a16f3654ab320vboxsync STDMETHOD(AdoptSavedState) (IN_BSTR aSavedStateFile);
09e11be404479b989812ad9da85a16f3654ab320vboxsync STDMETHOD(GetDeviceActivity) (DeviceType_T aDeviceType,
09e11be404479b989812ad9da85a16f3654ab320vboxsync STDMETHOD(DetachUSBDevice) (IN_BSTR aId, IUSBDevice **aDevice);
09e11be404479b989812ad9da85a16f3654ab320vboxsync STDMETHOD(FindUSBDeviceByAddress) (IN_BSTR aAddress, IUSBDevice **aDevice);
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync STDMETHOD(FindUSBDeviceById) (IN_BSTR aId, IUSBDevice **aDevice);
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync STDMETHOD(CreateSharedFolder) (IN_BSTR aName, IN_BSTR aHostPath, BOOL aWritable);
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync STDMETHOD(TakeSnapshot) (IN_BSTR aName, IN_BSTR aDescription,
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync STDMETHOD(DiscardSnapshot) (IN_BSTR aId, IProgress **aProgress);
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync STDMETHOD(DiscardCurrentState) (IProgress **aProgress);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync STDMETHOD(DiscardCurrentSnapshotAndState) (IProgress **aProgress);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync STDMETHOD(RegisterCallback) (IConsoleCallback *aCallback);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync STDMETHOD(UnregisterCallback)(IConsoleCallback *aCallback);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync // public methods for internal purposes only
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * Note: the following methods do not increase refcount. intended to be
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * called only by the VM execution thread.
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync Keyboard *getKeyboard() const { return mKeyboard; }
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync MachineDebugger *getMachineDebugger() const { return mDebugger; }
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync const ComPtr <IMachine> &machine() const { return mMachine; }
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync /** Method is called only from ConsoleVRDPServer */
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync IVRDPServer *getVRDPServer() const { return mVRDPServer; }
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync ConsoleVRDPServer *consoleVRDPServer() const { return mConsoleVRDPServer; }
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT updateMachineState (MachineState_T aMachineState);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync // events from IInternalSessionControl
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT onNetworkAdapterChange (INetworkAdapter *aNetworkAdapter);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT onSerialPortChange (ISerialPort *aSerialPort);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT onParallelPortChange (IParallelPort *aParallelPort);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT onUSBDeviceAttach (IUSBDevice *aDevice, IVirtualBoxErrorInfo *aError, ULONG aMaskedIfs);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT onUSBDeviceDetach (IN_BSTR aId, IVirtualBoxErrorInfo *aError);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT getGuestProperty (IN_BSTR aKey, BSTR *aValue, ULONG64 *aTimestamp, BSTR *aFlags);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT setGuestProperty (IN_BSTR aKey, IN_BSTR aValue, IN_BSTR aFlags);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT enumerateGuestProperties (IN_BSTR aPatterns, ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(BSTR, aValues), ComSafeArrayOut(ULONG64, aTimestamps), ComSafeArrayOut(BSTR, aFlags));
0aa150e34ed49f14aaa37368c2e6999ec89e5f43vboxsync AudioSniffer *getAudioSniffer () { return mAudioSniffer; }
0aa150e34ed49f14aaa37368c2e6999ec89e5f43vboxsync int VRDPClientLogon (uint32_t u32ClientId, const char *pszUser, const char *pszPassword, const char *pszDomain);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync void VRDPClientDisconnect (uint32_t u32ClientId, uint32_t fu32Intercepted);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync void VRDPInterceptUSB (uint32_t u32ClientId, void **ppvIntercept);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync void VRDPInterceptClipboard (uint32_t u32ClientId);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync void processRemoteUSBDevices (uint32_t u32ClientId, VRDPUSBDEVICEDESC *pDevList, uint32_t cbDevList);
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync // callback callers (partly; for some events console callbacks are notified
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync // directly from IInternalSessionControl event handlers declared above)
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync void onMousePointerShapeChange(bool fVisible, bool fAlpha,
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync void onMouseCapabilityChange (BOOL supportsAbsolute, BOOL needsHostCursor);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync void onKeyboardLedsChange (bool fNumLock, bool fCapsLock, bool fScrollLock);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync void onUSBDeviceStateChange (IUSBDevice *aDevice, bool aAttached,
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync void onRuntimeError (BOOL aFatal, IN_BSTR aErrorID, IN_BSTR aMessage);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT onShowWindow (BOOL aCheck, BOOL *aCanShow, ULONG64 *aWinId);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync void reportAuthLibraryError (const char *filename, int rc)
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync setError (E_FAIL, tr("Could not load the external authentication library '%s' (%Rrc)"), filename, rc);
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync // for VirtualBoxSupportErrorInfoImpl
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync static const wchar_t *getComponentName() { return L"Console"; }
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * Base template for AutoVMCaller and SaveVMPtr. Template arguments
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * have the same meaning as arguments of Console::addVMCaller().
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync template <bool taQuiet = false, bool taAllowNullVM = false>
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync AutoVMCallerBase (Console *aThat) : mThat (aThat), mRC (S_OK)
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync /** Decreases the number of callers before the instance is destroyed. */
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync /** Restores the number of callers after by #release(). #rc() must be
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * rechecked to ensure the operation succeeded. */
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync /** Returns the result of Console::addVMCaller() */
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync /** Shortcut to SUCCEEDED (rc()) */
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP (AutoVMCallerBase)
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * Helper class that protects sections of code using the mpVM pointer by
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * automatically calling addVMCaller() on construction and
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * releaseVMCaller() on destruction. Intended for Console methods dealing
09e11be404479b989812ad9da85a16f3654ab320vboxsync * with mpVM. The usage pattern is:
09e11be404479b989812ad9da85a16f3654ab320vboxsync * AutoVMCaller autoVMCaller (this);
09e11be404479b989812ad9da85a16f3654ab320vboxsync * CheckComRCReturnRC (autoVMCaller.rc());
09e11be404479b989812ad9da85a16f3654ab320vboxsync * VMR3ReqCall (mpVM, ...
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * @note Temporarily locks the argument for writing.
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * @sa SafeVMPtr, SafeVMPtrQuiet
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync typedef AutoVMCallerBase <false, false> AutoVMCaller;
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * Same as AutoVMCaller but doesn't set extended error info on failure.
64babf0f32eaf36212d54af4a3ce5fe193b24825vboxsync * @note Temporarily locks the argument for writing.
09e11be404479b989812ad9da85a16f3654ab320vboxsync typedef AutoVMCallerBase <true, false> AutoVMCallerQuiet;
09e11be404479b989812ad9da85a16f3654ab320vboxsync * Same as AutoVMCaller but allows a null VM pointer (to trigger an error
09e11be404479b989812ad9da85a16f3654ab320vboxsync * instead of assertion).
09e11be404479b989812ad9da85a16f3654ab320vboxsync * @note Temporarily locks the argument for writing.
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync typedef AutoVMCallerBase <false, true> AutoVMCallerWeak;
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * Same as AutoVMCaller but doesn't set extended error info on failure
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * and allows a null VM pointer (to trigger an error instead of
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * assertion).
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * @note Temporarily locks the argument for writing.
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync typedef AutoVMCallerBase <true, true> AutoVMCallerQuietWeak;
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * Base template for SaveVMPtr and SaveVMPtrQuiet.
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync class SafeVMPtrBase : public AutoVMCallerBase <taQuiet, true>
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync SafeVMPtrBase (Console *aThat) : Base (aThat), mpVM (NULL)
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync /** Smart SaveVMPtr to PVM cast operator */
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync /** Direct PVM access for printf()-like functions */
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * Helper class that safely manages the Console::mpVM pointer
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * by calling addVMCaller() on construction and releaseVMCaller() on
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * destruction. Intended for Console children. The usage pattern is:
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * Console::SaveVMPtr pVM (mParent);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * CheckComRCReturnRC (pVM.rc());
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * VMR3ReqCall (pVM, ...
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * printf ("%p\n", pVM.raw());
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * @note Temporarily locks the argument for writing.
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync * @sa SafeVMPtrQuiet, AutoVMCaller
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * A deviation of SaveVMPtr that doesn't set the error info on failure.
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * Intended for pieces of code that don't need to return the VM access
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * failure to the caller. The usage pattern is:
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * Console::SaveVMPtrQuiet pVM (mParent);
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * if (pVM.rc())
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * VMR3ReqCall (pVM, ...
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * return S_OK;
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * @note Temporarily locks the argument for writing.
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync * @sa SafeVMPtr, AutoVMCaller
64babf0f32eaf36212d54af4a3ce5fe193b24825vboxsync typedef std::map <Bstr, ComObjPtr <SharedFolder> > SharedFolderMap;
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync typedef std::map <Bstr, SharedFolderData> SharedFolderDataMap;
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync typedef std::list <ComObjPtr <OUSBDevice> > USBDeviceList;
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync typedef std::list <ComObjPtr <RemoteUSBDevice> > RemoteUSBDeviceList;
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT addVMCaller (bool aQuiet = false, bool aAllowNullVM = false);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT consoleInitReleaseLog (const ComPtr <IMachine> aMachine);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT powerUp (IProgress **aProgress, bool aPaused);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT callTapSetupApplication(bool isStatic, RTFILE tapFD, Bstr &tapDevice,
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT attachToBridgedInterface(INetworkAdapter *networkAdapter);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT detachFromBridgedInterface(INetworkAdapter *networkAdapter);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT setMachineState (MachineState_T aMachineState, bool aUpdateServer = true);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT setMachineStateLocally (MachineState_T aMachineState)
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync return setMachineState (aMachineState, false /* aUpdateServer */);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync bool aSetError = false);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT createSharedFolder (CBSTR aName, SharedFolderData aData);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync static DECLCALLBACK(int) configConstructor(PVM pVM, void *pvConsole);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync static DECLCALLBACK(int) configNetwork(Console *pThis, const char *pszDevice,
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync static DECLCALLBACK(void) vmstateChangeCallback(PVM aVM, VMSTATE aState,
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT doDriveChange (const char *pszDevice, unsigned uInstance,
09e11be404479b989812ad9da85a16f3654ab320vboxsync static DECLCALLBACK(int) changeDrive (Console *pThis, const char *pszDevice,
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT doNetworkAdapterChange (const char *pszDevice, unsigned uInstance,
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync static DECLCALLBACK(int) changeNetworkAttachment (Console *pThis, const char *pszDevice,
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync#endif /* VBOX_DYNAMIC_NET_ATTACH */
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT attachUSBDevice (IUSBDevice *aHostDevice, ULONG aMaskedIfs);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync HRESULT detachUSBDevice (USBDeviceList::iterator &aIt);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync usbAttachCallback (Console *that, IUSBDevice *aHostDevice, PCRTUUID aUuid,
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync bool aRemote, const char *aAddress, ULONG aMaskedIfs);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync usbDetachCallback (Console *that, USBDeviceList::iterator *aIt, PCRTUUID aUuid);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync stateProgressCallback (PVM pVM, unsigned uPercent, void *pvUser);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync setVMErrorCallback (PVM pVM, void *pvUser, int rc, RT_SRC_POS_DECL,
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync setVMRuntimeErrorCallback (PVM pVM, void *pvUser, uint32_t fFatal,
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync static DECLCALLBACK (int) powerUpThread (RTTHREAD Thread, void *pvUser);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync static DECLCALLBACK (int) saveStateThread (RTTHREAD Thread, void *pvUser);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync static DECLCALLBACK (int) powerDownThread (RTTHREAD Thread, void *pvUser);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync static DECLCALLBACK(void *) drvStatus_QueryInterface(PPDMIBASE pInterface, PDMINTERFACE enmInterface);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync static DECLCALLBACK(void) drvStatus_UnitChanged(PPDMILEDCONNECTORS pInterface, unsigned iLUN);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync static DECLCALLBACK(void) drvStatus_Destruct(PPDMDRVINS pDrvIns);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync static DECLCALLBACK(int) drvStatus_Construct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle);
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync uint32_t mu32SingleRDPClientId; /* The id of a connected client in the single connection mode. */
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync static const char *sSSMConsoleUnit;
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync static DECLCALLBACK(void) saveStateFileExec (PSSMHANDLE pSSM, void *pvUser);
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync static DECLCALLBACK(int) loadStateFileExec (PSSMHANDLE pSSM, void *pvUser, uint32_t u32Version);
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync static DECLCALLBACK(int) doGuestPropNotification (void *pvExtension, uint32_t,
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync HRESULT doEnumerateGuestProperties (CBSTR aPatterns,
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync const ComObjPtr <RemoteDisplayInfo> mRemoteDisplayInfo;
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync /** The VM instance handle. */
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync /** Holds the number of "readonly" mpVM callers (users) */
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync /** Semaphore posted when the number of mpVM callers drops to zero */
db2893e30b129fbadd201b8f56cd7bc1974b395dvboxsync /** true when Console has entered the mpVM destruction phase */
66b15150e35f27f9499bb0a8399e452d6a04895dvboxsync /** true when power down is initiated by vmstateChangeCallback (EMT) */
bool valid;
bool visible;
bool alpha;
mpsc;
bool valid;
mcc;
bool valid;
bool numLock;
bool capsLock;
bool scrollLock;
klc;