Leaked source code of windows server 2003
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.

38 lines
859 B

  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. ****/
  12. #if _MSC_VER > 1000
  13. #pragma once
  14. #endif
  15. #ifndef _INC_SHARE
  16. #define _INC_SHARE
  17. #if !defined(_WIN32)
  18. #error ERROR: Only Win32 target supported!
  19. #endif
  20. #define _SH_DENYRW 0x10 /* deny read/write mode */
  21. #define _SH_DENYWR 0x20 /* deny write mode */
  22. #define _SH_DENYRD 0x30 /* deny read mode */
  23. #define _SH_DENYNO 0x40 /* deny none mode */
  24. #if !__STDC__
  25. /* Non-ANSI names for compatibility */
  26. #define SH_DENYRW _SH_DENYRW
  27. #define SH_DENYWR _SH_DENYWR
  28. #define SH_DENYRD _SH_DENYRD
  29. #define SH_DENYNO _SH_DENYNO
  30. #endif
  31. #endif /* _INC_SHARE */