share.h 642 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _INC_SHARE
  7. #define _INC_SHARE
  8. #ifndef _WIN32
  9. #error Only Win32 target is supported!
  10. #endif
  11. #define _SH_COMPAT 0x00
  12. #define _SH_DENYRW 0x10
  13. #define _SH_DENYWR 0x20
  14. #define _SH_DENYRD 0x30
  15. #define _SH_DENYNO 0x40
  16. #define _SH_SECURE 0x80
  17. #ifndef NO_OLDNAMES
  18. #define SH_COMPAT _SH_COMPAT
  19. #define SH_DENYRW _SH_DENYRW
  20. #define SH_DENYWR _SH_DENYWR
  21. #define SH_DENYRD _SH_DENYRD
  22. #define SH_DENYNO _SH_DENYNO
  23. #endif
  24. #endif