msvcrt: Follow Vista behaviour in wcscpy_s.
[wine.git] / include / msvcrt / share.h
blob3813e769197b0ff5b0c87ef073908a596f12db73
1 /*
2 * share.h
4 * Constants for file sharing functions.
6 * Derived from the Mingw32 header written by Colin Peters.
7 * Modified for Wine use by Bill Medland
8 * This file is in the public domain.
10 * Original header contained the following
12 * THIS SOFTWARE IS NOT COPYRIGHTED
14 * This source code is offered for use in the public domain. You may
15 * use, modify or distribute it freely.
17 * This code is distributed in the hope that it will be useful but
18 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
19 * DISCLAIMED. This includes but is not limited to warranties of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24 #ifndef __WINE_SHARE_H
25 #define __WINE_SHARE_H
26 #ifndef __WINE_USE_MSVCRT
27 #define __WINE_USE_MSVCRT
28 #endif
30 #define SH_COMPAT 0x00 /* Compatibility */
31 #define SH_DENYRW 0x10 /* Deny read/write */
32 #define SH_DENYWR 0x20 /* Deny write */
33 #define SH_DENYRD 0x30 /* Deny read */
34 #define SH_DENYNO 0x40 /* Deny nothing */
36 #define _SH_COMPAT SH_COMPAT
37 #define _SH_DENYRW SH_DENYRW
38 #define _SH_DENYWR SH_DENYWR
39 #define _SH_DENYRD SH_DENYRD
40 #define _SH_DENYNO SH_DENYNO
42 #endif /* __WINE_SHARE_H_ */