home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK10 / MFC / SRC / DOSIO_.H$ / dosio_
Encoding:
Text File  |  1992-03-07  |  1.3 KB  |  41 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library. 
  2. // Copyright (C) 1992 Microsoft Corporation 
  3. // All rights reserved. 
  4. //  
  5. // This source code is only intended as a supplement to the 
  6. // Microsoft Foundation Classes Reference and Microsoft 
  7. // QuickHelp documentation provided with the library. 
  8. // See these sources for detailed information regarding the 
  9. // Microsoft Foundation Classes product. 
  10.  
  11. /////////////////////////////////////////////////////////////////////////////
  12. // INTERNAL INTERNAL INTERNAL
  13. // Do not explicitly include
  14.  
  15.  
  16. #define CFile_shareMask ((UINT)(CFile::shareExclusive | CFile::shareDenyWrite | CFile::shareDenyRead | CFile::shareDenyNone | CFile::shareCompat))
  17.  
  18. #ifndef _WINDOWS
  19. typedef  char FAR* LPSTR;
  20. typedef  const char FAR* LPCSTR;
  21. inline int AnsiToOem(LPCSTR src, LPSTR dst)
  22.             { _fstrcpy(dst, src); return -1; }
  23. inline int OemToAnsi(LPCSTR src, LPSTR dst)
  24.             { _fstrcpy(dst, src); return -1; }
  25. #endif
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. #ifdef _DOSWIN
  29. #include <dos.h>
  30.  
  31. #ifdef _WINDOWS
  32. extern "C" void FAR PASCAL DOS3Call();
  33. #define DOSCALL call DOS3Call
  34. #else // _DOS
  35. #define DOSCALL int 21h
  36. #endif // _WINDOWS
  37.  
  38. #endif //_DOSWIN
  39.  
  40. /////////////////////////////////////////////////////////////////////////////
  41.