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.

34 lines
749 B

  1. /***
  2. *share.h - defines file sharing modes for sopen
  3. *
  4. * Copyright (c) 1985-1995, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file defines the file sharing modes for sopen().
  8. *
  9. * [Public]
  10. *
  11. ****/
  12. #ifndef _INC_SHARE
  13. #define _INC_SHARE
  14. #if !defined(_WIN32) && !defined(_MAC)
  15. #error ERROR: Only Mac or Win32 targets supported!
  16. #endif
  17. #define _SH_DENYRW 0x10 /* deny read/write mode */
  18. #define _SH_DENYWR 0x20 /* deny write mode */
  19. #define _SH_DENYRD 0x30 /* deny read mode */
  20. #define _SH_DENYNO 0x40 /* deny none mode */
  21. #if !__STDC__
  22. /* Non-ANSI names for compatibility */
  23. #define SH_DENYRW _SH_DENYRW
  24. #define SH_DENYWR _SH_DENYWR
  25. #define SH_DENYRD _SH_DENYRD
  26. #define SH_DENYNO _SH_DENYNO
  27. #endif
  28. #endif /* _INC_SHARE */