FILE_SHARE_READ (Constants)
Last changed: 94.229.131.27

.
Summary
Flag used for the dwSharingMode parameter CreateFile()

C# Constants:

const int FILE_SHARE_READ = 1;

VB Constants:

Const FILE_SHARE_READ As Integer = 1

Notes:

In CreateFile():

Enables subsequent open operations on a file or device to request read access.

Otherwise, other processes cannot open the file or device if they request read access.

If this flag is not specified, but the file or device has been opened for read access, the function fails.