VirtualBox

Ignore:
Timestamp:
Dec 20, 2023 4:10:26 PM (11 months ago)
Author:
vboxsync
Message:

Guest Control: Implemented IGuestSession::getMountPoints. bugref:10415

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp

    r99395 r102654  
    11751175/**
    11761176 * 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.
    11771185 */
    11781186VBGLR3DECL(int) VbglR3GuestCtrlPathGetRename(PVBGLR3GUESTCTRLCMDCTX     pCtx,
     
    12141222/**
    12151223 * Retrieves a HOST_PATH_USER_DOCUMENTS message.
     1224 *
     1225 * @param   pCtx                Guest control command context to use.
    12161226 */
    12171227VBGLR3DECL(int) VbglR3GuestCtrlPathGetUserDocuments(PVBGLR3GUESTCTRLCMDCTX pCtx)
     
    12371247/**
    12381248 * Retrieves a HOST_PATH_USER_HOME message.
     1249 *
     1250 * @param   pCtx                Guest control command context to use.
    12391251 */
    12401252VBGLR3DECL(int) VbglR3GuestCtrlPathGetUserHome(PVBGLR3GUESTCTRLCMDCTX pCtx)
     
    12491261        VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, vbglR3GuestCtrlGetMsgFunctionNo(pCtx->uClientID), pCtx->uNumParms);
    12501262        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 */
     1277VBGLR3DECL(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);
    12511288
    12521289        rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette