Changeset 68462 in vbox
- Timestamp:
- Aug 18, 2017 11:23:02 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuestLib.h
r68436 r68462 663 663 /* General message handling on the guest. */ 664 664 VBGLR3DECL(int) VbglR3GuestCtrlConnect(uint32_t *pidClient); 665 VBGLR3DECL(int) VbglR3GuestCtrlDisconnect(uint32_t uClientId);665 VBGLR3DECL(int) VbglR3GuestCtrlDisconnect(uint32_t idClient); 666 666 VBGLR3DECL(int) VbglR3GuestCtrlMsgFilterSet(uint32_t uClientId, uint32_t uValue, uint32_t uMaskAdd, uint32_t uMaskRemove); 667 667 VBGLR3DECL(int) VbglR3GuestCtrlMsgFilterUnset(uint32_t uClientId); -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibClipboard.cpp
r68458 r68462 72 72 VBGLR3DECL(int) VbglR3ClipboardDisconnect(HGCMCLIENTID idClient) 73 73 { 74 VBoxGuestHGCMDisconnectInfo Info; 75 Info.result = VERR_WRONG_ORDER; 76 Info.u32ClientID = idClient; 77 78 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_DISCONNECT, &Info, sizeof(Info)); 79 if (RT_SUCCESS(rc)) 80 rc = Info.result; 81 return rc; 74 return VbglR3HGCMDisconnect(idClient); 82 75 } 83 76 -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibDragAndDrop.cpp
r68458 r68462 1385 1385 { 1386 1386 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); 1387 1388 VBoxGuestHGCMDisconnectInfo Info; 1389 Info.result = VERR_WRONG_ORDER; 1390 Info.u32ClientID = pCtx->uClientID; 1391 1392 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_DISCONNECT, &Info, sizeof(Info)); 1393 if (RT_SUCCESS(rc)) 1394 rc = Info.result; 1395 1387 int rc = VbglR3HGCMDisconnect(pCtx->uClientID); 1388 if (RT_SUCCESS(rc)) 1389 pCtx->uClientID = 0; 1396 1390 return rc; 1397 1391 } -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibGuestCtrl.cpp
r68458 r68462 46 46 * 47 47 * @returns VBox status code 48 * @param p uClientIdWhere to put The client ID on success. The client ID48 * @param pidClient Where to put The client ID on success. The client ID 49 49 * must be passed to all the other calls to the service. 50 50 */ 51 VBGLR3DECL(int) VbglR3GuestCtrlConnect(uint32_t *p uClientId)51 VBGLR3DECL(int) VbglR3GuestCtrlConnect(uint32_t *pidClient) 52 52 { 53 53 VBoxGuestHGCMConnectInfo Info; … … 63 63 rc = Info.result; 64 64 if (RT_SUCCESS(rc)) 65 *p uClientId= Info.u32ClientID;65 *pidClient = Info.u32ClientID; 66 66 } 67 67 return rc; … … 73 73 * 74 74 * @returns VBox status code. 75 * @param uClientId The client ID returned by VbglR3GuestCtrlConnect(). 76 */ 77 VBGLR3DECL(int) VbglR3GuestCtrlDisconnect(uint32_t uClientId) 78 { 79 VBoxGuestHGCMDisconnectInfo Info; 80 Info.result = VERR_WRONG_ORDER; 81 Info.u32ClientID = uClientId; 82 83 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_DISCONNECT, &Info, sizeof(Info)); 84 if (RT_SUCCESS(rc)) 85 rc = Info.result; 86 return rc; 75 * @param idClient The client ID returned by VbglR3GuestCtrlConnect(). 76 */ 77 VBGLR3DECL(int) VbglR3GuestCtrlDisconnect(uint32_t idClient) 78 { 79 return VbglR3HGCMDisconnect(idClient); 87 80 } 88 81 -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibGuestProp.cpp
r68458 r68462 157 157 VBGLR3DECL(int) VbglR3GuestPropDisconnect(HGCMCLIENTID idClient) 158 158 { 159 VBoxGuestHGCMDisconnectInfo Info; 160 Info.result = VERR_WRONG_ORDER; 161 Info.u32ClientID = idClient; 162 163 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_DISCONNECT, &Info, sizeof(Info)); 164 if (RT_SUCCESS(rc)) 165 rc = Info.result; 166 return rc; 159 return VbglR3HGCMDisconnect(idClient); 167 160 } 168 161 -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibHostChannel.cpp
r68458 r68462 60 60 VBGLR3DECL(void) VbglR3HostChannelTerm(uint32_t u32HGCMClientId) 61 61 { 62 VBoxGuestHGCMDisconnectInfo disconnectInfo; 63 disconnectInfo.result = VERR_WRONG_ORDER; 64 disconnectInfo.u32ClientID = u32HGCMClientId; 65 66 vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_DISCONNECT, &disconnectInfo, sizeof(disconnectInfo)); 62 VbglR3HGCMDisconnect(u32HGCMClientId); 67 63 } 68 64 -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSharedFolders.cpp
r68458 r68462 75 75 VBGLR3DECL(int) VbglR3SharedFolderDisconnect(HGCMCLIENTID idClient) 76 76 { 77 VBoxGuestHGCMDisconnectInfo Info; 78 Info.result = VERR_WRONG_ORDER; 79 Info.u32ClientID = idClient; 80 81 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_DISCONNECT, &Info, sizeof(Info)); 82 if (RT_SUCCESS(rc)) 83 rc = Info.result; 84 return rc; 77 return VbglR3HGCMDisconnect(idClient); 85 78 } 86 79
Note:
See TracChangeset
for help on using the changeset viewer.