home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / share.h < prev    next >
C/C++ Source or Header  |  1998-06-16  |  885b  |  39 lines

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