VirtualBox

忽略:
時間撮記:
2010-12-13 下午02:40:09 (14 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
68843
訊息:

VBoxService/VbglR3: Added ability to optionally specify auto-mount directory.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSharedFolders.cpp

    r33540 r35016  
    288288    return rc;
    289289}
     290
     291/**
     292 * Retrieves the mount root directory for auto-mounted shared
     293 * folders. mount point. If no string is set (VERR_NOT_FOUND)
     294 * it's up on the caller (guest) to decide where to mount.
     295 *
     296 * @returns VBox status code.
     297 * @param   ppszDir         Where to return the directory
     298 *                          string. This shall be freed by
     299 *                          calling RTStrFree.
     300 */
     301VBGLR3DECL(int) VbglR3SharedFolderGetMountDir(char **ppszDir)
     302{
     303    AssertPtrReturn(ppszDir, VERR_INVALID_POINTER);
     304    int rc;
     305#ifdef VBOX_WITH_GUEST_PROPS
     306    uint32_t u32ClientIdGuestProp;
     307    rc = VbglR3GuestPropConnect(&u32ClientIdGuestProp);
     308    if (RT_SUCCESS(rc))
     309    {
     310        rc = VbglR3GuestPropReadValueAlloc(u32ClientIdGuestProp, "/VirtualBox/GuestAdd/SharedFolders/MountDir", ppszDir);
     311        VbglR3GuestPropDisconnect(u32ClientIdGuestProp);
     312    }
     313#endif
     314    return rc;
     315}
     316
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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