Changeset 46428 in vbox
- Timestamp:
- Jun 7, 2013 8:26:18 AM (12 years ago)
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp
r46196 r46428 1437 1437 DWORD cbReturned = 0; 1438 1438 VBoxGuestCapsAquire Info; 1439 Log(("VBoxTray: VBoxAcquireGuestCaps or(0x%x), not(0x%x), cfx(%d)\n", fOr, fNot, fCfg)); 1439 1440 Info.enmFlags = fCfg ? VBOXGUESTCAPSACQUIRE_FLAGS_CONFIG_ACQUIRE_MODE : VBOXGUESTCAPSACQUIRE_FLAGS_NONE; 1440 1441 Info.rc = VERR_NOT_IMPLEMENTED; … … 1444 1445 { 1445 1446 DWORD LastErr = GetLastError(); 1446 WARN((" DeviceIoControl VBOXGUEST_IOCTL_GUEST_CAPS_ACQUIRE failed LastErr %d\n", LastErr));1447 WARN(("VBoxTray: DeviceIoControl VBOXGUEST_IOCTL_GUEST_CAPS_ACQUIRE failed LastErr %d\n", LastErr)); 1447 1448 return RTErrConvertFromWin32(LastErr); 1448 1449 } … … 1451 1452 if (!RT_SUCCESS(rc)) 1452 1453 { 1453 WARN(("VB OXGUEST_IOCTL_GUEST_CAPS_ACQUIRE failed rc %d\n", rc));1454 WARN(("VBoxTray: VBOXGUEST_IOCTL_GUEST_CAPS_ACQUIRE failed rc %d\n", rc)); 1454 1455 return rc; 1455 1456 } … … 1496 1497 if (fEnabled) 1497 1498 { 1499 Log(("VBoxTray: vboxCapsOnEnableSeamles: ENABLED\n")); 1498 1500 Assert(pCap->enmAcState == VBOXCAPS_ENTRY_ACSTATE_ACQUIRED); 1499 1501 Assert(pCap->enmFuncState == VBOXCAPS_ENTRY_FUNCSTATE_STARTED); … … 1502 1504 else 1503 1505 { 1506 Log(("VBoxTray: vboxCapsOnEnableSeamles: DISABLED\n")); 1504 1507 Assert(pCap->enmAcState != VBOXCAPS_ENTRY_ACSTATE_ACQUIRED || pCap->enmFuncState != VBOXCAPS_ENTRY_FUNCSTATE_STARTED); 1505 1508 VBoxSeamlessRemoveHook(); … … 1510 1513 { 1511 1514 VBOXCAPS *pConsole = &gVBoxCaps; 1515 1516 Log(("VBoxTray: vboxCapsEntryAcStateSet: new state enmAcState(%d); pCap: fCap(%d), iCap(%d), enmFuncState(%d), enmAcState(%d)\n", 1517 enmAcState, pCap->fCap, pCap->iCap, pCap->enmFuncState, pCap->enmAcState)); 1518 1512 1519 if (pCap->enmAcState == enmAcState) 1513 1520 return; … … 1534 1541 { 1535 1542 VBOXCAPS *pConsole = &gVBoxCaps; 1543 1544 Log(("VBoxTray: vboxCapsEntryFuncStateSet: new state enmAcState(%d); pCap: fCap(%d), iCap(%d), enmFuncState(%d), enmAcState(%d)\n", 1545 enmFuncState, pCap->fCap, pCap->iCap, pCap->enmFuncState, pCap->enmAcState)); 1546 1536 1547 if (pCap->enmFuncState == enmFuncState) 1537 1548 return; … … 1579 1590 { 1580 1591 VBOXCAPS *pConsole = &gVBoxCaps; 1592 Log(("VBoxTray: VBoxCapsReleaseAll\n")); 1581 1593 int rc = VBoxAcquireGuestCaps(0, VMMDEV_GUEST_SUPPORTS_SEAMLESS | VMMDEV_GUEST_SUPPORTS_GRAPHICS, false); 1582 1594 if (!RT_SUCCESS(rc)) … … 1588 1600 if (pConsole->idTimer) 1589 1601 { 1602 Log(("VBoxTray: killing console timer\n")); 1590 1603 KillTimer(ghwndToolWindow, pConsole->idTimer); 1591 1604 pConsole->idTimer = 0; … … 1664 1677 if (pCap->enmAcState == VBOXCAPS_ENTRY_ACSTATE_RELEASED) 1665 1678 { 1666 WARN((" invalid cap[%d] state[%d] on release\n", iCap, pCap->enmAcState));1679 WARN(("VBoxTray: invalid cap[%d] state[%d] on release\n", iCap, pCap->enmAcState)); 1667 1680 return VERR_INVALID_STATE; 1668 1681 } … … 1684 1697 Assert(VBoxConsoleIsAllowed()); 1685 1698 VBOXCAPS_ENTRY *pCap = &pConsole->aCaps[iCap]; 1699 Log(("VBoxTray: VBoxCapsEntryAcquire %d\n", iCap)); 1686 1700 if (pCap->enmAcState != VBOXCAPS_ENTRY_ACSTATE_RELEASED) 1687 1701 { 1688 WARN((" invalid cap[%d] state[%d] on acquire\n", iCap, pCap->enmAcState));1702 WARN(("VBoxTray: invalid cap[%d] state[%d] on acquire\n", iCap, pCap->enmAcState)); 1689 1703 return VERR_INVALID_STATE; 1690 1704 } … … 1725 1739 { 1726 1740 VBOXCAPS *pConsole = &gVBoxCaps; 1741 Log(("VBoxTray: VBoxCapsAcquireAllSupported\n")); 1727 1742 for (int i = 0; i < RT_ELEMENTS(pConsole->aCaps); ++i) 1728 1743 { 1729 1744 if (pConsole->aCaps[i].enmFuncState >= VBOXCAPS_ENTRY_FUNCSTATE_SUPPORTED) 1745 { 1746 Log(("VBoxTray: VBoxCapsAcquireAllSupported acquiring cap %d, state %d\n", i, pConsole->aCaps[i].enmFuncState)); 1730 1747 VBoxCapsEntryAcquire(i); 1748 } 1749 else 1750 { 1751 WARN(("VBoxTray: VBoxCapsAcquireAllSupported: WARN: cap %d not supported, state %d\n", i, pConsole->aCaps[i].enmFuncState)); 1752 } 1731 1753 } 1732 1754 return VINF_SUCCESS; -
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r46196 r46428 2544 2544 uint32_t fSetCaps = 0; 2545 2545 2546 LogRel(("VBoxGuest: VBoxGuestCommonGuestCapsAcquire: pSession(0x%p), OR(0x%x), NOT(0x%x), flags(0x%x)\n", pSession, fOrMask, fNotMask, enmFlags)); 2547 2546 2548 if (!VBoxGuestCommonGuestCapsValidateValues(fOrMask)) 2547 2549 { … … 2618 2620 if (!RT_SUCCESS(rc)) 2619 2621 { 2622 LogRel(("VBoxGuest: VBoxGuestCommonGuestCapsAcquire: VBoxGuestSetGuestCapabilities failed, rc %d\n", rc)); 2623 2620 2624 /* Failure branch 2621 2625 * this is generally bad since e.g. failure to release the caps may result in other sessions not being able to use it
Note:
See TracChangeset
for help on using the changeset viewer.