STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
corecrt_share.h
Go to the documentation of this file.
1 //
2 // corecrt_share.h
3 //
4 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //
6 // Defines the file sharing modes for the sopen() family of functions. These
7 // declarations are split out to support the Windows build.
8 //
9 #pragma once
10 
11 
12 
13 #define _SH_DENYRW 0x10 // deny read/write mode
14 #define _SH_DENYWR 0x20 // deny write mode
15 #define _SH_DENYRD 0x30 // deny read mode
16 #define _SH_DENYNO 0x40 // deny none mode
17 #define _SH_SECURE 0x80 // secure mode
18 
19 
20 
21 #if (defined _CRT_DECLARE_NONSTDC_NAMES && _CRT_DECLARE_NONSTDC_NAMES) || (!defined _CRT_DECLARE_NONSTDC_NAMES && !__STDC__)
22  #define SH_DENYRW _SH_DENYRW
23  #define SH_DENYWR _SH_DENYWR
24  #define SH_DENYRD _SH_DENYRD
25  #define SH_DENYNO _SH_DENYNO
26 #endif