Changeset 7437 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Mar 12, 2008 4:11:04 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28875
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.