Changeset 35016 in vbox for trunk/src/VBox/Additions/common/VBoxGuestLib
- Timestamp:
- Dec 13, 2010 2:40:09 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68843
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSharedFolders.cpp
r33540 r35016 288 288 return rc; 289 289 } 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 */ 301 VBGLR3DECL(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
Note:
See TracChangeset
for help on using the changeset viewer.