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.

64 lines
1.8 KiB

  1. // Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1993 Microsoft Corporation,
  3. // All rights reserved.
  4. // This source code is only intended as a supplement to the
  5. // Microsoft Foundation Classes Reference and Microsoft
  6. // QuickHelp and/or WinHelp documentation provided with the library.
  7. // See these sources for detailed information regarding the
  8. // Microsoft Foundation Classes product.
  9. // afxv_dos.h - target version/configuration control for _DOS (non Windows)
  10. #ifndef _DOS
  11. #error afxv_dos.h must only be included as the _DOS configuration file
  12. #endif
  13. #ifdef _WINDOWS
  14. #error afxv_dos.h must not be included with a _WINDOWS configuration
  15. #endif
  16. // VBX not supported
  17. #define NO_VBX_SUPPORT
  18. // Windows String APIs for DOS
  19. #define lstrlen _fstrlen
  20. #define lstrcmp _fstrcmp
  21. #define lstrcmpi _fstricmp
  22. #define lstrcpy _fstrcpy
  23. #define lstrcat _fstrcat
  24. // ANSI and OEM character sets are the same
  25. #define AnsiToOem(src, dst) _fstrcpy(dst, src)
  26. #define OemToAnsi(src, dst) _fstrcpy(dst, src)
  27. // Setjmp support (C runtimes default)
  28. #define _AFX_JBLEN 9
  29. #define setjmp _setjmp
  30. extern "C" int __cdecl _setjmp(int[_AFX_JBLEN]);
  31. #define Catch setjmp
  32. // Other Windows helpers
  33. #ifndef max
  34. #define max(a,b) (((a) > (b)) ? (a) : (b))
  35. #endif
  36. #ifndef min
  37. #define min(a,b) (((a) < (b)) ? (a) : (b))
  38. #endif
  39. #ifndef LOWORD
  40. #define LOWORD(l) ((WORD)(DWORD)(l))
  41. #endif
  42. #ifndef HIWORD
  43. #define HIWORD(l) ((WORD)((((DWORD)(l)) >> 16) & 0xFFFF))
  44. #endif
  45. #ifndef MAKELONG
  46. #define MAKELONG(low, high) \
  47. ((LONG)(((WORD)(low)) | (((DWORD)((WORD)(high))) << 16)))
  48. #endif
  49. // DBCS stubs
  50. #define _AfxStrChr _fstrchr
  51. #define _AfxIsDBCSLeadByte(b) (FALSE)
  52. #define AnsiNext(p) ((LPSTR)p+1)
  53. /////////////////////////////////////////////////////////////////////////////