VirtualBox

Changeset 82465 in vbox for trunk/include


Ignore:
Timestamp:
Dec 6, 2019 3:44:15 PM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard/Transfers: Reduced SHCL_OBJ_CF_ flags / options to a bare minimum.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/SharedClipboard-transfers.h

    r81768 r82465  
    111111#define SHCL_OBJ_CF_DIRECTORY             (0x00000004)
    112112
    113 /** Open/create action to do if object exists
    114  *  and if the object does not exists.
    115  *  REPLACE file means atomically DELETE and CREATE.
    116  *  OVERWRITE file means truncating the file to 0 and
    117  *  setting new size.
    118  *  When opening an existing directory REPLACE and OVERWRITE
    119  *  actions are considered invalid, and cause returning
    120  *  FILE_EXISTS with NIL handle.
    121  */
    122 #define SHCL_OBJ_CF_ACT_MASK_IF_EXISTS      (0x000000F0)
    123 #define SHCL_OBJ_CF_ACT_MASK_IF_NEW         (0x00000F00)
    124 
    125 /** What to do if object exists. */
    126 #define SHCL_OBJ_CF_ACT_OPEN_IF_EXISTS      (0x00000000)
    127 #define SHCL_OBJ_CF_ACT_FAIL_IF_EXISTS      (0x00000010)
    128 #define SHCL_OBJ_CF_ACT_REPLACE_IF_EXISTS   (0x00000020)
    129 #define SHCL_OBJ_CF_ACT_OVERWRITE_IF_EXISTS (0x00000030)
    130 
    131 /** What to do if object does not exist. */
    132 #define SHCL_OBJ_CF_ACT_CREATE_IF_NEW       (0x00000000)
    133 #define SHCL_OBJ_CF_ACT_FAIL_IF_NEW         (0x00000100)
    134 
    135113/** Read/write requested access for the object. */
    136 #define SHCL_OBJ_CF_ACCESS_MASK_RW          (0x00003000)
     114#define SHCL_OBJ_CF_ACCESS_MASK_RW          (0x00001000)
    137115
    138116/** No access requested. */
     
    140118/** Read access requested. */
    141119#define SHCL_OBJ_CF_ACCESS_READ             (0x00001000)
    142 /** Write access requested. */
    143 #define SHCL_OBJ_CF_ACCESS_WRITE            (0x00002000)
    144 /** Read/Write access requested. */
    145 #define SHCL_OBJ_CF_ACCESS_READWRITE        (SHCL_OBJ_CF_ACCESS_READ | SHCL_OBJ_CF_ACCESS_WRITE)
    146120
    147121/** Requested share access for the object. */
     
    164138/** Read access requested. */
    165139#define SHCL_OBJ_CF_ACCESS_ATTR_READ        (0x00010000)
    166 /** Write access requested. */
    167 #define SHCL_OBJ_CF_ACCESS_ATTR_WRITE       (0x00020000)
    168 /** Read/Write access requested. */
    169 #define SHCL_OBJ_CF_ACCESS_ATTR_READWRITE   (SHCL_OBJ_CF_ACCESS_ATTR_READ | SHCL_OBJ_CF_ACCESS_ATTR_WRITE)
    170 
    171 /** The file is opened in append mode. Ignored if SHCL_OBJ_CF_ACCESS_WRITE is not set. */
    172 #define SHCL_OBJ_CF_ACCESS_APPEND           (0x00040000)
    173140
    174141/** @} */
    175142
    176 /** Result of an open/create request.
     143/** Result of an open request.
    177144 *  Along with handle value the result code
    178145 *  identifies what has happened while
     
    186153    /** Path to file exists, but the last component does not. */
    187154    SHCL_CREATERESULT_FILE_NOT_FOUND,
    188     /** File already exists and either has been opened or not. */
    189     SHCL_CREATERESULT_FILE_EXISTS,
    190     /** New file was created. */
    191     SHCL_CREATERESULT_FILE_CREATED,
    192     /** Existing file was replaced or overwritten. */
    193     SHCL_CREATERESULT_FILE_REPLACED,
    194155    /** Blow the type up to 32-bit. */
    195156    SHCL_CREATERESULT_32BIT_HACK = 0x7fffffff
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