VirtualBox

source: vbox/trunk/src/VBox/Main/include/ConsoleImpl.h@ 10770

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

Main: Documenting.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 20.6 KB
Line 
1/** @file
2 *
3 * VBox Console COM Class definition
4 */
5
6/*
7 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18 * Clara, CA 95054 USA or visit http://www.sun.com if you need
19 * additional information or have any questions.
20 */
21
22#ifndef ____H_CONSOLEIMPL
23#define ____H_CONSOLEIMPL
24
25#include "VirtualBoxBase.h"
26#include "ProgressImpl.h"
27
28class Guest;
29class Keyboard;
30class Mouse;
31class Display;
32class MachineDebugger;
33class OUSBDevice;
34class RemoteUSBDevice;
35class SharedFolder;
36class RemoteDisplayInfo;
37class AudioSniffer;
38class ConsoleVRDPServer;
39class VMMDev;
40
41#include <VBox/vrdpapi.h>
42#include <VBox/pdmdrv.h>
43
44struct VUSBIRHCONFIG;
45typedef struct VUSBIRHCONFIG *PVUSBIRHCONFIG;
46
47#include <list>
48
49// defines
50///////////////////////////////////////////////////////////////////////////////
51
52/**
53 * Checks the availability of the underlying VM device driver corresponding
54 * to the COM interface (IKeyboard, IMouse, IDisplay, etc.). When the driver is
55 * not available (NULL), sets error info and returns returns E_ACCESSDENIED.
56 * The translatable error message is defined in null context.
57 *
58 * Intended to used only within Console children (i,e. Keyboard, Mouse,
59 * Display, etc.).
60 *
61 * @param drv driver pointer to check (compare it with NULL)
62 */
63#define CHECK_CONSOLE_DRV(drv) \
64 do { \
65 if (!(drv)) \
66 return setError (E_ACCESSDENIED, tr ("The console is not powered up")); \
67 } while (0)
68
69/** @def VBOX_WITH_UNIXY_TAP_NETWORKING
70 * Unixy style TAP networking. This is defined in the Makefile since it's also
71 * used by NetworkAdapterImpl.h/cpp.
72 */
73#ifdef __DOXYGEN__
74# define VBOX_WITH_UNIXY_TAP_NETWORKING
75#endif
76
77// Console
78///////////////////////////////////////////////////////////////////////////////
79
80/** IConsole implementation class */
81class ATL_NO_VTABLE Console :
82 public VirtualBoxBaseWithChildrenNEXT,
83 public VirtualBoxSupportErrorInfoImpl <Console, IConsole>,
84 public VirtualBoxSupportTranslation <Console>,
85 public IConsole
86{
87 Q_OBJECT
88
89public:
90
91 DECLARE_NOT_AGGREGATABLE(Console)
92
93 DECLARE_PROTECT_FINAL_CONSTRUCT()
94
95 BEGIN_COM_MAP(Console)
96 COM_INTERFACE_ENTRY(ISupportErrorInfo)
97 COM_INTERFACE_ENTRY(IConsole)
98 END_COM_MAP()
99
100 NS_DECL_ISUPPORTS
101
102 Console();
103 ~Console();
104
105 HRESULT FinalConstruct();
106 void FinalRelease();
107
108 // public initializers/uninitializers for internal purposes only
109 HRESULT init (IMachine *aMachine, IInternalMachineControl *aControl);
110 void uninit();
111
112 // IConsole properties
113 STDMETHOD(COMGETTER(Machine)) (IMachine **aMachine);
114 STDMETHOD(COMGETTER(State)) (MachineState_T *aMachineState);
115 STDMETHOD(COMGETTER(Guest)) (IGuest **aGuest);
116 STDMETHOD(COMGETTER(Keyboard)) (IKeyboard **aKeyboard);
117 STDMETHOD(COMGETTER(Mouse)) (IMouse **aMouse);
118 STDMETHOD(COMGETTER(Display)) (IDisplay **aDisplay);
119 STDMETHOD(COMGETTER(Debugger)) (IMachineDebugger **aDebugger);
120 STDMETHOD(COMGETTER(USBDevices)) (IUSBDeviceCollection **aUSBDevices);
121 STDMETHOD(COMGETTER(RemoteUSBDevices)) (IHostUSBDeviceCollection **aRemoteUSBDevices);
122 STDMETHOD(COMGETTER(RemoteDisplayInfo)) (IRemoteDisplayInfo **aRemoteDisplayInfo);
123 STDMETHOD(COMGETTER(SharedFolders)) (ISharedFolderCollection **aSharedFolders);
124
125 // IConsole methods
126 STDMETHOD(PowerUp) (IProgress **aProgress);
127 STDMETHOD(PowerDown)();
128 STDMETHOD(Reset)();
129 STDMETHOD(Pause)();
130 STDMETHOD(Resume)();
131 STDMETHOD(PowerButton)();
132 STDMETHOD(SleepButton)();
133 STDMETHOD(GetPowerButtonHandled)(BOOL *aHandled);
134 STDMETHOD(SaveState) (IProgress **aProgress);
135 STDMETHOD(AdoptSavedState) (INPTR BSTR aSavedStateFile);
136 STDMETHOD(DiscardSavedState)();
137 STDMETHOD(GetDeviceActivity) (DeviceType_T aDeviceType,
138 DeviceActivity_T *aDeviceActivity);
139 STDMETHOD(AttachUSBDevice) (INPTR GUIDPARAM aId);
140 STDMETHOD(DetachUSBDevice) (INPTR GUIDPARAM aId, IUSBDevice **aDevice);
141 STDMETHOD(CreateSharedFolder) (INPTR BSTR aName, INPTR BSTR aHostPath, BOOL aWritable);
142 STDMETHOD(RemoveSharedFolder) (INPTR BSTR aName);
143 STDMETHOD(TakeSnapshot) (INPTR BSTR aName, INPTR BSTR aDescription,
144 IProgress **aProgress);
145 STDMETHOD(DiscardSnapshot) (INPTR GUIDPARAM aId, IProgress **aProgress);
146 STDMETHOD(DiscardCurrentState) (IProgress **aProgress);
147 STDMETHOD(DiscardCurrentSnapshotAndState) (IProgress **aProgress);
148 STDMETHOD(RegisterCallback) (IConsoleCallback *aCallback);
149 STDMETHOD(UnregisterCallback)(IConsoleCallback *aCallback);
150
151 // public methods for internal purposes only
152
153 /*
154 * Note: the following methods do not increase refcount. intended to be
155 * called only by the VM execution thread.
156 */
157
158 Guest *getGuest() { return mGuest; }
159 Keyboard *getKeyboard() { return mKeyboard; }
160 Mouse *getMouse() { return mMouse; }
161 Display *getDisplay() { return mDisplay; }
162 MachineDebugger *getMachineDebugger() { return mDebugger; }
163
164 const ComPtr <IMachine> &machine() { return mMachine; }
165
166 /** Method is called only from ConsoleVRDPServer */
167 IVRDPServer *getVRDPServer() { return mVRDPServer; }
168
169 ConsoleVRDPServer *consoleVRDPServer() { return mConsoleVRDPServer; }
170
171 HRESULT updateMachineState (MachineState_T aMachineState);
172
173 // events from IInternalSessionControl
174 HRESULT onDVDDriveChange();
175 HRESULT onFloppyDriveChange();
176 HRESULT onNetworkAdapterChange (INetworkAdapter *aNetworkAdapter);
177 HRESULT onSerialPortChange (ISerialPort *aSerialPort);
178 HRESULT onParallelPortChange (IParallelPort *aParallelPort);
179 HRESULT onVRDPServerChange();
180 HRESULT onUSBControllerChange();
181 HRESULT onSharedFolderChange (BOOL aGlobal);
182 HRESULT onUSBDeviceAttach (IUSBDevice *aDevice, IVirtualBoxErrorInfo *aError, ULONG aMaskedIfs);
183 HRESULT onUSBDeviceDetach (INPTR GUIDPARAM aId, IVirtualBoxErrorInfo *aError);
184 HRESULT getGuestProperty (INPTR BSTR aKey, BSTR *aValue);
185 HRESULT setGuestProperty (INPTR BSTR aKey, INPTR BSTR aValue);
186
187 VMMDev *getVMMDev() { return mVMMDev; }
188 AudioSniffer *getAudioSniffer () { return mAudioSniffer; }
189
190 int VRDPClientLogon (uint32_t u32ClientId, const char *pszUser, const char *pszPassword, const char *pszDomain);
191 void VRDPClientConnect (uint32_t u32ClientId);
192 void VRDPClientDisconnect (uint32_t u32ClientId, uint32_t fu32Intercepted);
193 void VRDPInterceptAudio (uint32_t u32ClientId);
194 void VRDPInterceptUSB (uint32_t u32ClientId, void **ppvIntercept);
195 void VRDPInterceptClipboard (uint32_t u32ClientId);
196
197 void processRemoteUSBDevices (uint32_t u32ClientId, VRDPUSBDEVICEDESC *pDevList, uint32_t cbDevList);
198
199 // callback callers (partly; for some events console callbacks are notified
200 // directly from IInternalSessionControl event handlers declared above)
201 void onMousePointerShapeChange(bool fVisible, bool fAlpha,
202 uint32_t xHot, uint32_t yHot,
203 uint32_t width, uint32_t height,
204 void *pShape);
205 void onMouseCapabilityChange (BOOL supportsAbsolute, BOOL needsHostCursor);
206 void onStateChange (MachineState_T aMachineState);
207 void onAdditionsStateChange();
208 void onAdditionsOutdated();
209 void onKeyboardLedsChange (bool fNumLock, bool fCapsLock, bool fScrollLock);
210 void onUSBDeviceStateChange (IUSBDevice *aDevice, bool aAttached,
211 IVirtualBoxErrorInfo *aError);
212 void onRuntimeError (BOOL aFatal, INPTR BSTR aErrorID, INPTR BSTR aMessage);
213 HRESULT onShowWindow (BOOL aCheck, BOOL *aCanShow, ULONG64 *aWinId);
214
215 static const PDMDRVREG DrvStatusReg;
216
217 void reportAuthLibraryError (const char *filename, int rc)
218 {
219 setError (E_FAIL, tr("Could not load the external authentication library '%s' (%Vrc)"), filename, rc);
220 }
221
222 // for VirtualBoxSupportErrorInfoImpl
223 static const wchar_t *getComponentName() { return L"Console"; }
224
225private:
226
227 /**
228 * Base template for AutoVMCaller and SaveVMPtr. Template arguments
229 * have the same meaning as arguments of Console::addVMCaller().
230 */
231 template <bool taQuiet = false, bool taAllowNullVM = false>
232 class AutoVMCallerBase
233 {
234 public:
235 AutoVMCallerBase (Console *aThat) : mThat (aThat), mRC (S_OK)
236 {
237 Assert (aThat);
238 mRC = aThat->addVMCaller (taQuiet, taAllowNullVM);
239 }
240 ~AutoVMCallerBase()
241 {
242 if (SUCCEEDED (mRC))
243 mThat->releaseVMCaller();
244 }
245 /** Decreases the number of callers before the instance is destroyed. */
246 void release()
247 {
248 AssertReturnVoid (SUCCEEDED (mRC));
249 mThat->releaseVMCaller();
250 mRC = E_FAIL;
251 }
252 /** Restores the number of callers after by #release(). #rc() must be
253 * rechecked to ensure the operation succeeded. */
254 void add()
255 {
256 AssertReturnVoid (!SUCCEEDED (mRC));
257 mRC = mThat->addVMCaller (taQuiet, taAllowNullVM);
258 }
259 /** Returns the result of Console::addVMCaller() */
260 HRESULT rc() const { return mRC; }
261 /** Shortcut to SUCCEEDED (rc()) */
262 bool isOk() const { return SUCCEEDED (mRC); }
263 protected:
264 Console *mThat;
265 HRESULT mRC;
266 private:
267 DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP (AutoVMCallerBase)
268 DECLARE_CLS_NEW_DELETE_NOOP (AutoVMCallerBase)
269 };
270
271 /**
272 * Helper class that protects sections of code using the mpVM pointer by
273 * automatically calling addVMCaller() on construction and
274 * releaseVMCaller() on destruction. Intended for Console methods dealing
275 * with mpVM. The usage pattern is:
276 * <code>
277 * AutoVMCaller autoVMCaller (this);
278 * CheckComRCReturnRC (autoVMCaller.rc());
279 * ...
280 * VMR3ReqCall (mpVM, ...
281 * </code>
282 *
283 * @note Temporarily locks the argument for writing.
284 *
285 * @sa SafeVMPtr, SafeVMPtrQuiet
286 */
287 typedef AutoVMCallerBase <false, false> AutoVMCaller;
288
289 /**
290 * Same as AutoVMCaller but doesn't set extended error info on failure.
291 *
292 * @note Temporarily locks the argument for writing.
293 */
294 typedef AutoVMCallerBase <true, false> AutoVMCallerQuiet;
295
296 /**
297 * Same as AutoVMCaller but allows a null VM pointer (to trigger an error
298 * instead of assertion).
299 *
300 * @note Temporarily locks the argument for writing.
301 */
302 typedef AutoVMCallerBase <false, true> AutoVMCallerWeak;
303
304 /**
305 * Same as AutoVMCaller but doesn't set extended error info on failure
306 * and allows a null VM pointer (to trigger an error instead of
307 * assertion).
308 *
309 * @note Temporarily locks the argument for writing.
310 */
311 typedef AutoVMCallerBase <true, true> AutoVMCallerQuietWeak;
312
313 /**
314 * Base template for SaveVMPtr and SaveVMPtrQuiet.
315 */
316 template <bool taQuiet = false>
317 class SafeVMPtrBase : public AutoVMCallerBase <taQuiet, true>
318 {
319 typedef AutoVMCallerBase <taQuiet, true> Base;
320 public:
321 SafeVMPtrBase (Console *aThat) : Base (aThat), mpVM (NULL)
322 {
323 if (SUCCEEDED (Base::mRC))
324 mpVM = aThat->mpVM;
325 }
326 /** Smart SaveVMPtr to PVM cast operator */
327 operator PVM() const { return mpVM; }
328 /** Direct PVM access for printf()-like functions */
329 PVM raw() const { return mpVM; }
330 private:
331 PVM mpVM;
332 DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP (SafeVMPtrBase)
333 DECLARE_CLS_NEW_DELETE_NOOP (SafeVMPtrBase)
334 };
335
336public:
337
338 /**
339 * Helper class that safely manages the Console::mpVM pointer
340 * by calling addVMCaller() on construction and releaseVMCaller() on
341 * destruction. Intended for Console children. The usage pattern is:
342 * <code>
343 * Console::SaveVMPtr pVM (mParent);
344 * CheckComRCReturnRC (pVM.rc());
345 * ...
346 * VMR3ReqCall (pVM, ...
347 * ...
348 * printf ("%p\n", pVM.raw());
349 * </code>
350 *
351 * @note Temporarily locks the argument for writing.
352 *
353 * @sa SafeVMPtrQuiet, AutoVMCaller
354 */
355 typedef SafeVMPtrBase <false> SafeVMPtr;
356
357 /**
358 * A deviation of SaveVMPtr that doesn't set the error info on failure.
359 * Intenede for pieces of code that don't need to return the VM access
360 * failure to the caller. The usage pattern is:
361 * <code>
362 * Console::SaveVMPtrQuiet pVM (mParent);
363 * if (pVM.rc())
364 * VMR3ReqCall (pVM, ...
365 * return S_OK;
366 * </code>
367 *
368 * @note Temporarily locks the argument for writing.
369 *
370 * @sa SafeVMPtr, AutoVMCaller
371 */
372 typedef SafeVMPtrBase <true> SafeVMPtrQuiet;
373
374 class SharedFolderData
375 {
376 public:
377 SharedFolderData() {}
378 SharedFolderData(Bstr aHostPath, BOOL aWritable)
379 : mHostPath (aHostPath)
380 , mWritable (aWritable) {}
381 SharedFolderData(const SharedFolderData& aThat)
382 : mHostPath (aThat.mHostPath)
383 , mWritable (aThat.mWritable) {}
384 Bstr mHostPath;
385 BOOL mWritable;
386 };
387 typedef std::map <Bstr, ComObjPtr <SharedFolder> > SharedFolderMap;
388 typedef std::map <Bstr, SharedFolderData> SharedFolderDataMap;
389
390private:
391
392 typedef std::list <ComObjPtr <OUSBDevice> > USBDeviceList;
393 typedef std::list <ComObjPtr <RemoteUSBDevice> > RemoteUSBDeviceList;
394
395 HRESULT addVMCaller (bool aQuiet = false, bool aAllowNullVM = false);
396 void releaseVMCaller();
397
398 HRESULT consoleInitReleaseLog (const ComPtr <IMachine> aMachine);
399
400 HRESULT powerDown();
401
402 HRESULT callTapSetupApplication(bool isStatic, RTFILE tapFD, Bstr &tapDevice,
403 Bstr &tapSetupApplication);
404 HRESULT attachToHostInterface(INetworkAdapter *networkAdapter);
405 HRESULT detachFromHostInterface(INetworkAdapter *networkAdapter);
406 HRESULT powerDownHostInterfaces();
407
408 HRESULT setMachineState (MachineState_T aMachineState, bool aUpdateServer = true);
409 HRESULT setMachineStateLocally (MachineState_T aMachineState)
410 {
411 return setMachineState (aMachineState, false /* aUpdateServer */);
412 }
413
414 HRESULT findSharedFolder (const BSTR aName,
415 ComObjPtr <SharedFolder> &aSharedFolder,
416 bool aSetError = false);
417
418 HRESULT fetchSharedFolders (BOOL aGlobal);
419 bool findOtherSharedFolder (INPTR BSTR aName,
420 SharedFolderDataMap::const_iterator &aIt);
421
422 HRESULT createSharedFolder (INPTR BSTR aName, SharedFolderData aData);
423 HRESULT removeSharedFolder (INPTR BSTR aName);
424
425 static DECLCALLBACK(int) configConstructor(PVM pVM, void *pvConsole);
426 static DECLCALLBACK(void) vmstateChangeCallback(PVM aVM, VMSTATE aState,
427 VMSTATE aOldState, void *aUser);
428 HRESULT doDriveChange (const char *pszDevice, unsigned uInstance,
429 unsigned uLun, DriveState_T eState,
430 DriveState_T *peState, const char *pszPath,
431 bool fPassthrough);
432 static DECLCALLBACK(int) changeDrive (Console *pThis, const char *pszDevice,
433 unsigned uInstance, unsigned uLun,
434 DriveState_T eState, DriveState_T *peState,
435 const char *pszPath, bool fPassthrough);
436
437#ifdef VBOX_WITH_USB
438 HRESULT attachUSBDevice (IUSBDevice *aHostDevice, ULONG aMaskedIfs);
439 HRESULT detachUSBDevice (USBDeviceList::iterator &aIt);
440
441 static DECLCALLBACK(int)
442 usbAttachCallback (Console *that, IUSBDevice *aHostDevice, PCRTUUID aUuid,
443 bool aRemote, const char *aAddress, ULONG aMaskedIfs);
444 static DECLCALLBACK(int)
445 usbDetachCallback (Console *that, USBDeviceList::iterator *aIt, PCRTUUID aUuid);
446#endif
447
448 static DECLCALLBACK (int)
449 stateProgressCallback (PVM pVM, unsigned uPercent, void *pvUser);
450
451 static DECLCALLBACK(void)
452 setVMErrorCallback (PVM pVM, void *pvUser, int rc, RT_SRC_POS_DECL,
453 const char *pszFormat, va_list args);
454
455 static DECLCALLBACK(void)
456 setVMRuntimeErrorCallback (PVM pVM, void *pvUser, bool fFatal,
457 const char *pszErrorID,
458 const char *pszFormat, va_list args);
459
460 HRESULT captureUSBDevices (PVM pVM);
461 void detachAllUSBDevices (bool aDone);
462
463 static DECLCALLBACK (int) powerUpThread (RTTHREAD Thread, void *pvUser);
464 static DECLCALLBACK (int) saveStateThread (RTTHREAD Thread, void *pvUser);
465 static DECLCALLBACK (int) powerDownThread (RTTHREAD Thread, void *pvUser);
466
467 static DECLCALLBACK(void *) drvStatus_QueryInterface(PPDMIBASE pInterface, PDMINTERFACE enmInterface);
468 static DECLCALLBACK(void) drvStatus_UnitChanged(PPDMILEDCONNECTORS pInterface, unsigned iLUN);
469 static DECLCALLBACK(void) drvStatus_Destruct(PPDMDRVINS pDrvIns);
470 static DECLCALLBACK(int) drvStatus_Construct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle);
471
472 int mcAudioRefs;
473 volatile uint32_t mcVRDPClients;
474
475 static const char *sSSMConsoleUnit;
476 static uint32_t sSSMConsoleVer;
477
478 HRESULT loadDataFromSavedState();
479
480 static DECLCALLBACK(void) saveStateFileExec (PSSMHANDLE pSSM, void *pvUser);
481 static DECLCALLBACK(int) loadStateFileExec (PSSMHANDLE pSSM, void *pvUser, uint32_t u32Version);
482
483 bool mSavedStateDataLoaded : 1;
484
485 const ComPtr <IMachine> mMachine;
486 const ComPtr <IInternalMachineControl> mControl;
487
488 const ComPtr <IVRDPServer> mVRDPServer;
489 const ComPtr <IDVDDrive> mDVDDrive;
490 const ComPtr <IFloppyDrive> mFloppyDrive;
491
492 ConsoleVRDPServer * const mConsoleVRDPServer;
493
494 const ComObjPtr <Guest> mGuest;
495 const ComObjPtr <Keyboard> mKeyboard;
496 const ComObjPtr <Mouse> mMouse;
497 const ComObjPtr <Display> mDisplay;
498 const ComObjPtr <MachineDebugger> mDebugger;
499 const ComObjPtr <RemoteDisplayInfo> mRemoteDisplayInfo;
500
501 USBDeviceList mUSBDevices;
502 RemoteUSBDeviceList mRemoteUSBDevices;
503
504 SharedFolderMap mSharedFolders;
505 SharedFolderDataMap mMachineSharedFolders;
506 SharedFolderDataMap mGlobalSharedFolders;
507
508 /** The VM instance handle. */
509 PVM mpVM;
510 /** Holds the number of "readonly" mpVM callers (users) */
511 uint32_t mVMCallers;
512 /** Semaphore posted when the number of mpVM callers drops to zero */
513 RTSEMEVENT mVMZeroCallersSem;
514 /** true when Console has entered the mpVM destruction phase */
515 bool mVMDestroying : 1;
516
517 /** The current DVD drive state in the VM.
518 * This does not have to match the state maintained in the DVD. */
519 DriveState_T meDVDState;
520 /** The current Floppy drive state in the VM.
521 * This does not have to match the state maintained in the Floppy. */
522 DriveState_T meFloppyState;
523
524 VMMDev * const mVMMDev;
525 AudioSniffer * const mAudioSniffer;
526
527 PPDMLED mapFDLeds[2];
528 PPDMLED mapIDELeds[4];
529 PPDMLED mapSATALeds[30];
530 PPDMLED mapNetworkLeds[8];
531 PPDMLED mapSharedFolderLed;
532 PPDMLED mapUSBLed[2];
533#ifdef VBOX_WITH_UNIXY_TAP_NETWORKING
534 Utf8Str maTAPDeviceName[8];
535 RTFILE maTapFD[8];
536#endif
537
538 bool mVMStateChangeCallbackDisabled;
539
540 /* Local machine state value */
541 MachineState_T mMachineState;
542
543 typedef std::list <ComPtr <IConsoleCallback> > CallbackList;
544 CallbackList mCallbacks;
545
546 struct
547 {
548 /** OnMousePointerShapeChange() cache */
549 struct
550 {
551 bool valid;
552 bool visible;
553 bool alpha;
554 uint32_t xHot;
555 uint32_t yHot;
556 uint32_t width;
557 uint32_t height;
558 BYTE *shape;
559 size_t shapeSize;
560 }
561 mpsc;
562
563 /** OnMouseCapabilityChange() cache */
564 struct
565 {
566 bool valid;
567 BOOL supportsAbsolute;
568 BOOL needsHostCursor;
569 }
570 mcc;
571
572 /** OnKeyboardLedsChange() cache */
573 struct
574 {
575 bool valid;
576 bool numLock;
577 bool capsLock;
578 bool scrollLock;
579 }
580 klc;
581 }
582 mCallbackData;
583
584 friend struct VMTask;
585};
586
587#endif // ____H_CONSOLEIMPL
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