VirtualBox

Changeset 76143 in vbox for trunk/include


Ignore:
Timestamp:
Dec 10, 2018 9:24:46 PM (6 years ago)
Author:
vboxsync
Message:

SharedFolders,os2/VBoxSF: Added SHFL_FN_SET_FILE_SIZE for setting the file size without needing to passing an mostly unused buffer (SHFLOBJINFO). Deprecated most of VbglR0SfXxxx and continued hacking on replacements using OS/2 as testbed. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/shflsvc.h

    r76118 r76143  
    131131 * @since VBox 6.0  */
    132132#define SHFL_FN_CANCEL_MAPPINGS_CHANGES_WAITS   (23)
     133/** Sets the file size.
     134 * @since VBox 6.0  */
     135#define SHFL_FN_SET_FILE_SIZE       (24)
    133136/** @} */
    134137
     
    11221125 */
    11231126
     1127/** SHFL_FN_MAP_FOLDER parameters. */
     1128typedef struct VBoxSFParmMapFolder
     1129{
     1130    /** pointer, in: SHFLSTRING with the name of the folder to map. */
     1131    HGCMFunctionParameter pStrName;
     1132    /** value32, out: The root ID (SHFLROOT) of the mapping. */
     1133    HGCMFunctionParameter id32Root;
     1134    /** value32, in: Path delimiter code point. */
     1135    HGCMFunctionParameter uc32Delimiter;
     1136    /** value32, in: case senstive flag */
     1137    HGCMFunctionParameter fCaseSensitive;
     1138} VBoxSFParmMapFolder;
     1139
    11241140/** Parameters structure. */
    11251141typedef struct _VBoxSFMapFolder
     
    11571173 * @{
    11581174 */
     1175
     1176/** SHFL_FN_UNMAP_FOLDER parameters. */
     1177typedef struct VBoxSFParmUnmapFolder
     1178{
     1179    /** value32, in: SHFLROOT of the mapping to unmap */
     1180    HGCMFunctionParameter id32Root;
     1181} VBoxSFParmUnmapFolder;
    11591182
    11601183/** Parameters structure. */
     
    12591282
    12601283/** Parameters structure. */
     1284typedef struct VBoxSFParmRead
     1285{
     1286    /** value32, in: SHFLROOT of the mapping with the handle. */
     1287    HGCMFunctionParameter id32Root;
     1288    /** value64, in: SHFLHANDLE of object to read from . */
     1289    HGCMFunctionParameter u64Handle;
     1290    /** value64, in: Offset to start reading from. */
     1291    HGCMFunctionParameter off64Read;
     1292    /** value32, in/out: How much to try read / Actually read. */
     1293    HGCMFunctionParameter cb32Read;
     1294    /** pointer, out: Buffer to return the data in. */
     1295    HGCMFunctionParameter pBuf;
     1296} VBoxSFParmRead;
     1297
     1298/** Parameters structure. */
    12611299typedef struct _VBoxSFRead
    12621300{
     
    14001438 * @{
    14011439 */
     1440
     1441/** SHFL_FN_FLUSH parameters. */
     1442typedef struct VBoxSFParmFlush
     1443{
     1444    /** value32, in: SHFLROOT of the mapping with the handle. */
     1445    HGCMFunctionParameter id32Root;
     1446    /** value64, in: SHFLHANDLE of object to flush. */
     1447    HGCMFunctionParameter u64Handle;
     1448} VBoxSFParmFlush;
    14021449
    14031450/** Parameters structure. */
     
    16041651#define SHFL_REMOVE_SYMLINK     (0x4)
    16051652
     1653/** SHFL_FN_REMOVE parameters. */
     1654typedef struct VBoxSFParmRemove
     1655{
     1656    /** value32, in: SHFLROOT of the mapping the path is relative to. */
     1657    HGCMFunctionParameter id32Root;
     1658    /** pointer, in: Points to SHFLSTRING buffer. */
     1659    HGCMFunctionParameter pStrPath;
     1660    /** value32, in: SHFL_REMOVE_XXX */
     1661    HGCMFunctionParameter f32Flags;
     1662} VBoxSFParmRemove;
     1663
    16061664/** Parameters structure. */
    16071665typedef struct _VBoxSFRemove
     
    16371695#define SHFL_RENAME_DIR                 (0x2)
    16381696#define SHFL_RENAME_REPLACE_IF_EXISTS   (0x4)
     1697
     1698/** SHFL_FN_RENAME parameters. */
     1699typedef struct VBoxSFParmRename
     1700{
     1701    /** value32, in: SHFLROOT of the mapping the paths are relative to. */
     1702    HGCMFunctionParameter id32Root;
     1703    /** pointer, in: SHFLSTRING giving the source (old) path. */
     1704    HGCMFunctionParameter pStrSrcPath;
     1705    /** pointer, in: SHFLSTRING giving the destination (new) path. */
     1706    HGCMFunctionParameter pStrDstPath;
     1707    /** value32, in: SHFL_RENAME_XXX  */
     1708    HGCMFunctionParameter f32Flags;
     1709} VBoxSFParmRename;
    16391710
    16401711/** Parameters structure. */
     
    17751846
    17761847
     1848/** @name SHFL_FN_SET_FILE_SIZE
     1849 * @{
     1850 */
     1851/** SHFL_FN_SET_FILE_SIZE parameters. */
     1852typedef struct VBoxSFParmSetFileSize
     1853{
     1854    /** value32, in: SHFLROOT of the mapping the handle belongs to. */
     1855    HGCMFunctionParameter id32Root;
     1856    /** value64, in: SHFLHANDLE of the file to change the size of. */
     1857    HGCMFunctionParameter u64Handle;
     1858    /** value64, in: The new file size. */
     1859    HGCMFunctionParameter cb64NewSize;
     1860} VBoxSFParmSetFileSize;
     1861/** Number of parameters */
     1862#define SHFL_CPARMS_SET_FILE_SIZE (3)
     1863/** @} */
     1864
     1865
     1866
     1867
     1868
    17771869/** @name SHFL_FN_ADD_MAPPING
    17781870 * @note  Host call, no guest structure is used.
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