home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / share.h < prev    next >
C/C++ Source or Header  |  1998-06-17  |  1KB  |  46 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  /* _MSC_VER > 1000 */
  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  /* !defined (_WIN32) && !defined (_MAC) */
  23.  
  24. #ifndef _CRTBLD
  25. /* This version of the header files is NOT for user programs.
  26.  * It is intended for use when building the C runtimes ONLY.
  27.  * The version intended for public use will not have this message.
  28.  */
  29. #error ERROR: Use of C runtime library internal header file.
  30. #endif  /* _CRTBLD */
  31.  
  32. #define _SH_DENYRW      0x10    /* deny read/write mode */
  33. #define _SH_DENYWR      0x20    /* deny write mode */
  34. #define _SH_DENYRD      0x30    /* deny read mode */
  35. #define _SH_DENYNO      0x40    /* deny none mode */
  36.  
  37. #if !__STDC__
  38. /* Non-ANSI names for compatibility */
  39. #define SH_DENYRW _SH_DENYRW
  40. #define SH_DENYWR _SH_DENYWR
  41. #define SH_DENYRD _SH_DENYRD
  42. #define SH_DENYNO _SH_DENYNO
  43. #endif  /* !__STDC__ */
  44.  
  45. #endif  /* _INC_SHARE */
  46.