VirtualBox

Ignore:
Timestamp:
Nov 9, 2018 10:25:30 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126515
Message:

Main,VBoxManage,FE/Qt: Extended the createSharedFolder and ISharedFolder methods with a mount poit parameter/attribute for use when auto-mounting. This is especially useful for Windows and OS/2 guests which operates with drive letters. The change has not yet trickled down to the guest interface and VBoxService.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/testcase/tstSharedFolderService.cpp

    r69753 r75380  
    617617    union TESTSHFLSTRING FolderName;
    618618    union TESTSHFLSTRING Mapping;
     619    union TESTSHFLSTRING AutoMountPoint;
    619620    VBOXHGCMCALLHANDLE_TYPEDEF callHandle = { VINF_SUCCESS };
    620621    int rc;
     
    627628    fillTestShflString(&FolderName, pcszFolderName);
    628629    fillTestShflString(&Mapping, pcszMapping);
     630    fillTestShflString(&AutoMountPoint, "");
    629631    aParms[0].setPointer(&FolderName,   RT_UOFFSETOF(SHFLSTRING, String)
    630632                                      + FolderName.string.u16Size);
     
    632634                                   + Mapping.string.u16Size);
    633635    aParms[2].setUInt32(1);
     636    aParms[3].setPointer(&AutoMountPoint, SHFLSTRING_HEADER_SIZE + AutoMountPoint.string.u16Size);
    634637    rc = psvcTable->pfnHostCall(psvcTable->pvService, SHFL_FN_ADD_MAPPING,
    635638                                SHFL_CPARMS_ADD_MAPPING, aParms);
Note: See TracChangeset for help on using the changeset viewer.

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