Changeset 7437 in vbox
- Timestamp:
- Mar 12, 2008 4:11:04 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuest.h
r7409 r7437 1254 1254 case VMMDevReq_ReportGuestCapabilities: 1255 1255 return sizeof(VMMDevReqGuestCapabilities); 1256 case VMMDevReq_SetGuestCapabilities: 1257 return sizeof(VMMDevReqGuestCapabilities2); 1256 1258 #ifdef VBOX_HGCM 1257 1259 case VMMDevReq_HGCMConnect: … … 1404 1406 VBGLR3DECL(int) VbglR3CtlFilterMask(uint32_t fOr, uint32_t fNot); 1405 1407 VBGLR3DECL(int) VbglR3Daemonize(bool fNoChDir, bool fNoClose); 1408 VBGLR3DECL(int) VbglR3SetGuestCaps(uint32_t u32OrMask, uint32_t u32NotMask); 1406 1409 1407 1410 /** @name Shared clipboard -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp
r6557 r7437 20 20 * Header Files * 21 21 *******************************************************************************/ 22 #include <VBox/log.h> 23 22 24 #include "VBGLR3Internal.h" 23 24 25 25 26 /** … … 79 80 return vbglR3DoIOCtl(VBOXGUEST_IOCTL_CTL_FILTER_MASK, &Info, sizeof(Info)); 80 81 } 82 83 84 /** 85 * Report a change in the capabilities that we support to the host. 86 * 87 * @returns IPRT status value 88 * @param u32OrMask Capabilities which have been added 89 * @param u32NotMask Capabilities which have been removed 90 */ 91 VBGLR3DECL(int) VbglR3SetGuestCaps(uint32_t u32OrMask, uint32_t u32NotMask) 92 { 93 VMMDevReqGuestCapabilities2 vmmreqGuestCaps; 94 int rc = VINF_SUCCESS; 95 96 vmmdevInitRequest(&vmmreqGuestCaps.header, VMMDevReq_SetGuestCapabilities); 97 vmmreqGuestCaps.u32OrMask = u32OrMask; 98 vmmreqGuestCaps.u32NotMask = u32NotMask; 99 rc = vbglR3GRPerform(&vmmreqGuestCaps.header); 100 #ifdef DEBUG 101 if (RT_SUCCESS(rc)) 102 LogRel(("Successfully changed guest capabilities: or mask 0x%x, not mask 0x%x.\n", 103 u32OrMask, u32NotMask)); 104 else 105 LogRel(("Failed to change guest capabilities: or mask 0x%x, not mask 0x%x. rc = %Rrc.\n", 106 u32OrMask, u32NotMask, rc)); 107 #endif 108 return rc; 109 }
Note:
See TracChangeset
for help on using the changeset viewer.