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.

29 lines
751 B

  1. /***
  2. *share.h - defines file sharing modes for sopen
  3. *
  4. * Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file defines the file sharing modes for sopen().
  8. *
  9. ****/
  10. #ifndef _INC_SHARE
  11. #define _SH_COMPAT 0x00 /* compatibility mode */
  12. #define _SH_DENYRW 0x10 /* deny read/write mode */
  13. #define _SH_DENYWR 0x20 /* deny write mode */
  14. #define _SH_DENYRD 0x30 /* deny read mode */
  15. #define _SH_DENYNO 0x40 /* deny none mode */
  16. #ifndef __STDC__
  17. /* Non-ANSI names for compatibility */
  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. #define _INC_SHARE
  25. #endif