Changeset 102654 in vbox for trunk/src/VBox/Additions/common/VBoxGuest
- Timestamp:
- Dec 20, 2023 4:10:26 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp
r99395 r102654 1175 1175 /** 1176 1176 * Retrieves a HOST_PATH_RENAME message. 1177 * 1178 * @returns VBox status code. 1179 * @param pCtx Guest control command context to use. 1180 * @param pszSource Where to return the source path. 1181 * @param cbSource Size (in bytes) of \a pszSource. 1182 * @param pszDest Where to return the destination path. 1183 * @param cbDest Size (in bytes) of \a pszDest. 1184 * @param pfFlags Where to return the rename flags. 1177 1185 */ 1178 1186 VBGLR3DECL(int) VbglR3GuestCtrlPathGetRename(PVBGLR3GUESTCTRLCMDCTX pCtx, … … 1214 1222 /** 1215 1223 * Retrieves a HOST_PATH_USER_DOCUMENTS message. 1224 * 1225 * @param pCtx Guest control command context to use. 1216 1226 */ 1217 1227 VBGLR3DECL(int) VbglR3GuestCtrlPathGetUserDocuments(PVBGLR3GUESTCTRLCMDCTX pCtx) … … 1237 1247 /** 1238 1248 * Retrieves a HOST_PATH_USER_HOME message. 1249 * 1250 * @param pCtx Guest control command context to use. 1239 1251 */ 1240 1252 VBGLR3DECL(int) VbglR3GuestCtrlPathGetUserHome(PVBGLR3GUESTCTRLCMDCTX pCtx) … … 1249 1261 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, vbglR3GuestCtrlGetMsgFunctionNo(pCtx->uClientID), pCtx->uNumParms); 1250 1262 VbglHGCMParmUInt32Set(&Msg.context, HOST_MSG_PATH_USER_HOME); 1263 1264 rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg)); 1265 if (RT_SUCCESS(rc)) 1266 Msg.context.GetUInt32(&pCtx->uContextID); 1267 } while (rc == VERR_INTERRUPTED && g_fVbglR3GuestCtrlHavePeekGetCancel); 1268 return rc; 1269 } 1270 1271 1272 /** 1273 * Retrieves a HOST_MSG_MOUNT_POINTS message. 1274 * 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; 1286 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, vbglR3GuestCtrlGetMsgFunctionNo(pCtx->uClientID), pCtx->uNumParms); 1287 VbglHGCMParmUInt32Set(&Msg.context, HOST_MSG_MOUNT_POINTS); 1251 1288 1252 1289 rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));
Note:
See TracChangeset
for help on using the changeset viewer.