Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.46 KB

sharing-constants.md

File metadata and controls

37 lines (28 loc) · 1.46 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Sharing Constants
Sharing Constants
11/04/2016
CORECRT_SHARE/_SH_DENYNO
CORECRT_SHARE/_SH_DENYRD
CORECRT_SHARE/_SH_DENYRW
CORECRT_SHARE/_SH_DENYWR
CORECRT_SHARE/_SH_SECURE
_SH_DENYNO
_SH_DENYRD
_SH_DENYRW
_SH_DENYWR
_SH_SECURE
_SH_DENYRW constant
SH_DENYRD constant
_SH_SECURE constant
_SH_DENYRD constant
SH_DENYRW constant
sharing constants
SH_DENYNO constant
_SH_DENYWR constant
SH_DENYWR constant
_SH_DENYNO constant
SH_SECURE constant
95fadc3a-55dc-473d-98b5-e8211900465d

Sharing constants

Constants for file-sharing modes.

Syntax

#include <share.h>

Remarks

The shflag argument determines the sharing mode, which consists of one or more manifest constants. These constants 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).

See also

_sopen, _wsopen
_fsopen, _wfsopen
Global constants