Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.7 KiB

  1. /***
  2. *share.h - defines file sharing modes for sopen
  3. *
  4. * Copyright (c) 1985-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file defines the file sharing modes for sopen().
  8. *
  9. * [Public]
  10. *
  11. *Revision History:
  12. * 08-15-89 GJF Fixed copyright
  13. * 10-30-89 GJF Fixed copyright (again)
  14. * 03-01-90 GJF Added #ifndef _INC_SHARE stuff
  15. * 01-18-91 GJF ANSI naming
  16. * 08-11-92 GJF Removed SH_COMPAT (no such mode except in DOS).
  17. * 02-23-93 SKS Update copyright to 1993
  18. * 02-11-95 CFW Add _CRTBLD to avoid users getting wrong headers.
  19. * 02-14-95 CFW Clean up Mac merge.
  20. * 12-14-95 JWM Add "#pragma once".
  21. * 02-20-97 GJF Detab-ed.
  22. * 05-17-99 PML Remove all Macintosh support.
  23. *
  24. ****/
  25. #if _MSC_VER > 1000 /*IFSTRIP=IGN*/
  26. #pragma once
  27. #endif
  28. #ifndef _INC_SHARE
  29. #define _INC_SHARE
  30. #if !defined(_WIN32)
  31. #error ERROR: Only Win32 target supported!
  32. #endif
  33. #ifndef _CRTBLD
  34. /* This version of the header files is NOT for user programs.
  35. * It is intended for use when building the C runtimes ONLY.
  36. * The version intended for public use will not have this message.
  37. */
  38. #error ERROR: Use of C runtime library internal header file.
  39. #endif /* _CRTBLD */
  40. #define _SH_DENYRW 0x10 /* deny read/write mode */
  41. #define _SH_DENYWR 0x20 /* deny write mode */
  42. #define _SH_DENYRD 0x30 /* deny read mode */
  43. #define _SH_DENYNO 0x40 /* deny none mode */
  44. #if !__STDC__
  45. /* Non-ANSI names for compatibility */
  46. #define SH_DENYRW _SH_DENYRW
  47. #define SH_DENYWR _SH_DENYWR
  48. #define SH_DENYRD _SH_DENYRD
  49. #define SH_DENYNO _SH_DENYNO
  50. #endif
  51. #endif /* _INC_SHARE */