Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Sharing Constants

Constants for file-sharing modes.

#include <share.h>

The shflag argument determines the sharing mode, which consists of one or more manifest constants. These can be combined with the oflag arguments (see File Constants).

The following table lists the constants and their meanings:

Constant

Meaning

_SH_DENYRW

Denies read and write access to file

_SH_DENYWR

Denies write access to file

_SH_DENYRD

Denies read access to file

_SH_DENYNO

Permits read and write access

_SH_SECURE

Sets secure mode (shared read, exclusive write access).

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.