HANDLE_OPTIONS enumeration (windowsstoragecom.h)

Defines the flags of the file handle.

Syntax

typedef enum HANDLE_OPTIONS {
  HO_NONE,
  HO_OPEN_REQUIRING_OPLOCK,
  HO_DELETE_ON_CLOSE,
  HO_SEQUENTIAL_SCAN,
  HO_RANDOM_ACCESS,
  HO_NO_BUFFERING,
  HO_OVERLAPPED,
  HO_WRITE_THROUGH
} ;

Constants

 
HO_NONE
None.
HO_OPEN_REQUIRING_OPLOCK
This value is for internal use only.
HO_DELETE_ON_CLOSE
The file is to be deleted immediately after this handle is closed.
HO_SEQUENTIAL_SCAN
Access is intended to be sequential from beginning to end. The system can use this as a hint to optimize file caching.
For additional information, see Caching Behavior.
HO_RANDOM_ACCESS
Access is intended to be random. The system can use this as a hint to optimize file caching.
For more information, see Caching Behavior.
HO_NO_BUFFERING
The file is being opened with no system caching for data reads and writes. This flag does not affect hard disk caching or memory mapped files.
There are strict requirements for successfully working with files opened with this flag. For details see File Buffering.
HO_OVERLAPPED
The file is being opened or created for asynchronous I/O.
For information about considerations when using a file handle created with this flag, see Synchronous and Asynchronous I/O Handles.
HO_WRITE_THROUGH
Write operations will not go through any intermediate cache, they will go directly to disk.
For additional information, see Caching Behavior.

Requirements

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