HANDLE_SHARING_OPTIONS enumeration (windowsstoragecom.h)

Defines the requested sharing mode of the file handle.

Syntax

typedef enum HANDLE_SHARING_OPTIONS {
  HSO_SHARE_NONE = 0,
  HSO_SHARE_READ = 0x1,
  HSO_SHARE_WRITE = 0x2,
  HSO_SHARE_DELETE = 0x4
} ;

Constants

 
HSO_SHARE_NONE
Value: 0
Prevents other processes from opening a file if they request delete, read, or write access.
HSO_SHARE_READ
Value: 0x1
Enables subsequent open operations on a file to request read access.
Otherwise, other processes cannot open the file if they request read access.
HSO_SHARE_WRITE
Value: 0x2
Enables subsequent open operations on a file to request write access.
Otherwise, other processes cannot open the file if they request write access.
HSO_SHARE_DELETE
Value: 0x4
Enables subsequent open operations on a file to request delete access.
Otherwise, other processes cannot open the file if they request delete access.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Header windowsstoragecom.h