Changeset 46196 in vbox for trunk/src/VBox/Additions/common/VBoxGuest
- Timestamp:
- May 21, 2013 5:06:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r45811 r46196 71 71 static int VBoxGuestCommonIOCtl_SetMouseStatus(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession, uint32_t fFeatures); 72 72 73 static int VBoxGuestCommonGuestCapsAcquire(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession, uint32_t fOrMask, uint32_t fNotMask );73 static int VBoxGuestCommonGuestCapsAcquire(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession, uint32_t fOrMask, uint32_t fNotMask, VBOXGUESTCAPSACQUIRE_FLAGS enmFlags); 74 74 75 75 #define VBOXGUEST_ACQUIRE_STYLE_EVENTS (VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST | VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST) … … 1050 1050 pSession, pSession->Process, (int)pSession->Process, (uintptr_t)pSession->R0Process)); /** @todo %RTr0proc */ 1051 1051 1052 VBoxGuestCommonGuestCapsAcquire(pDevExt, pSession, 0, UINT32_MAX );1052 VBoxGuestCommonGuestCapsAcquire(pDevExt, pSession, 0, UINT32_MAX, VBOXGUESTCAPSACQUIRE_FLAGS_NONE); 1053 1053 1054 1054 VBoxGuestCommonIOCtl_CancelAllWaitEvents(pDevExt, pSession); … … 2540 2540 } 2541 2541 2542 static int VBoxGuestCommonGuestCapsAcquire(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession, uint32_t fOrMask, uint32_t fNotMask )2542 static int VBoxGuestCommonGuestCapsAcquire(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession, uint32_t fOrMask, uint32_t fNotMask, VBOXGUESTCAPSACQUIRE_FLAGS enmFlags) 2543 2543 { 2544 2544 uint32_t fSetCaps = 0; 2545 2546 if (!VBoxGuestCommonGuestCapsValidateValues(fOrMask)) 2547 { 2548 LogRel(("invalid fOrMask 0x%x\n", fOrMask)); 2549 return VERR_INVALID_PARAMETER; 2550 } 2551 2552 if (enmFlags != VBOXGUESTCAPSACQUIRE_FLAGS_CONFIG_ACQUIRE_MODE 2553 && enmFlags != VBOXGUESTCAPSACQUIRE_FLAGS_NONE) 2554 { 2555 LogRel(("invalid enmFlags %d\n", enmFlags)); 2556 return VERR_INVALID_PARAMETER; 2557 } 2545 2558 if (!VBoxGuestCommonGuestCapsModeSet(pDevExt, fOrMask, true, &fSetCaps)) 2546 2559 { 2547 Assert(0);2548 2560 LogRel(("calling caps acquire for set caps %d\n", fOrMask)); 2549 2561 return VERR_INVALID_STATE; 2550 2562 } 2551 2563 2552 if (!VBoxGuestCommonGuestCapsValidateValues(fOrMask)) 2553 return VERR_INVALID_PARAMETER; 2564 if (enmFlags & VBOXGUESTCAPSACQUIRE_FLAGS_CONFIG_ACQUIRE_MODE) 2565 { 2566 Log(("Configured Acquire caps: 0x%x\n", fOrMask)); 2567 return VINF_SUCCESS; 2568 } 2554 2569 2555 2570 /* the fNotMask no need to have all values valid, … … 2630 2645 static int VBoxGuestCommonIOCTL_GuestCapsAcquire(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession, VBoxGuestCapsAquire *pAcquire) 2631 2646 { 2632 int rc = VBoxGuestCommonGuestCapsAcquire(pDevExt, pSession, pAcquire->u32OrMask, pAcquire->u32NotMask );2647 int rc = VBoxGuestCommonGuestCapsAcquire(pDevExt, pSession, pAcquire->u32OrMask, pAcquire->u32NotMask, pAcquire->enmFlags); 2633 2648 if (!RT_SUCCESS(rc)) 2634 2649 LogRel(("VBoxGuestCommonGuestCapsAcquire: failed rc %d\n", rc));
Note:
See TracChangeset
for help on using the changeset viewer.