Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Sharing Constants

#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 constants and their meanings are listed below:

Constant

Meaning

_SH_COMPAT

Sets compatibility mode

_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).

Community Additions

ADD
Show:
© 2015 Microsoft