- Timestamp:
- Jan 11, 2024 9:18:25 AM (13 months ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/GuestControlSvc.h
r102831 r102833 1182 1182 HGCMFunctionParameter context; 1183 1183 } HGCMMsgPathUserHome; 1184 1185 /** 1186 * Retrieves mount points / drive letters from the guest. 1187 * 1188 * @since 7.1 1189 */ 1190 typedef struct HGCMMsgMountPoints 1191 { 1192 VBGLIOCHGCMCALL hdr; 1193 /** UInt32: Context ID. */ 1194 HGCMFunctionParameter context; 1195 /** UInt32: Flags; currently unused. */ 1196 HGCMFunctionParameter flags; 1197 } HGCMMsgMountPoints; 1184 1198 1185 1199 /** -
trunk/include/VBox/VBoxGuestLib.h
r102654 r102833 1091 1091 VBGLR3DECL(int) VbglR3GuestCtrlPathGetUserDocuments(PVBGLR3GUESTCTRLCMDCTX pCtx); 1092 1092 VBGLR3DECL(int) VbglR3GuestCtrlPathGetUserHome(PVBGLR3GUESTCTRLCMDCTX pCtx); 1093 VBGLR3DECL(int) VbglR3GuestCtrlGetMountPoints(PVBGLR3GUESTCTRLCMDCTX pCtx );1093 VBGLR3DECL(int) VbglR3GuestCtrlGetMountPoints(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t *pfFlags); 1094 1094 # ifdef VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS 1095 1095 /** @name Guest Control file system functions. -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp
r102654 r102833 1274 1274 * 1275 1275 * @param pCtx Guest control command context to use. 1276 */ 1277 VBGLR3DECL(int) VbglR3GuestCtrlGetMountPoints(PVBGLR3GUESTCTRLCMDCTX pCtx) 1278 { 1279 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); 1280 AssertReturn(pCtx->uNumParms == 1, VERR_INVALID_PARAMETER); 1281 1282 int rc; 1283 do 1284 { 1285 HGCMMsgPathUserHome Msg; 1276 * @param pfFlags Where to return the get mount point flags on success. 1277 */ 1278 VBGLR3DECL(int) VbglR3GuestCtrlGetMountPoints(PVBGLR3GUESTCTRLCMDCTX pCtx, uint32_t *pfFlags) 1279 { 1280 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); 1281 AssertReturn(pCtx->uNumParms == 2, VERR_INVALID_PARAMETER); 1282 AssertPtrReturn(pfFlags, VERR_INVALID_POINTER); 1283 1284 int rc; 1285 do 1286 { 1287 HGCMMsgMountPoints Msg; 1286 1288 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, vbglR3GuestCtrlGetMsgFunctionNo(pCtx->uClientID), pCtx->uNumParms); 1287 1289 VbglHGCMParmUInt32Set(&Msg.context, HOST_MSG_MOUNT_POINTS); … … 1289 1291 rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg)); 1290 1292 if (RT_SUCCESS(rc)) 1291 Msg.context.GetUInt32(&pCtx->uContextID); 1293 { 1294 Msg.context.GetUInt32(&pCtx->uContextID); 1295 Msg.flags.GetUInt32(pfFlags); 1296 } 1292 1297 } while (rc == VERR_INTERRUPTED && g_fVbglR3GuestCtrlHavePeekGetCancel); 1293 1298 return rc; -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp
r102654 r102833 1766 1766 * Retrieve the request. 1767 1767 */ 1768 int rc = VbglR3GuestCtrlGetMountPoints(pHostCtx); 1769 if (RT_SUCCESS(rc)) 1770 { 1768 uint32_t fFlags; 1769 int rc = VbglR3GuestCtrlGetMountPoints(pHostCtx, &fFlags); 1770 if (RT_SUCCESS(rc)) 1771 { 1772 /* Note: fFlags is currently unused, so we simply ignore this here. */ 1773 1771 1774 VGSVCMOUNTPOINTENUMCTX Ctx; 1772 1775 Ctx.cb = 0; -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r102831 r102833 3177 3177 3178 3178 /* Prepare HGCM call. */ 3179 VBOXHGCMSVCPARM paParms[ 2];3179 VBOXHGCMSVCPARM paParms[4]; 3180 3180 int i = 0; 3181 3181 HGCMSvcSetU32(&paParms[i++], pEvent->ContextID()); 3182 HGCMSvcSetU32(&paParms[i++], 0 /* fFlags, unused */); 3182 3183 3183 3184 alock.release(); /* Drop lock before sending. */
Note:
See TracChangeset
for help on using the changeset viewer.