home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c495 / watcm951.arj / STARTUP.WPK / WOS2.H < prev   
Encoding:
C/C++ Source or Header  |  1993-02-16  |  622 b   |  34 lines

  1. /*
  2.    Define constants so that OS/2-specific source files can be used for both
  3.    OS/2 1.x and OS/2 2.x.
  4. */
  5. #ifndef WOS2_H_INCLUDED
  6. #define WOS2_H_INCLUDED
  7.  
  8. #define INCL_BASE
  9. #include <os2.h>
  10.  
  11. #if defined(__386__)
  12.  
  13. #define    OS_UINT        ULONG
  14. #define    OS_PUINT    PULONG
  15. #define __FAR
  16.  
  17. #else
  18.  
  19. #define    APIRET        USHORT
  20. #define    OS_UINT        USHORT
  21. #define    OS_PUINT    PUSHORT
  22. #define __FAR        __far
  23.  
  24. /* values returned by DosQHandType() */
  25.  
  26. #define HANDTYPE_FILE     0x0000
  27. #define HANDTYPE_DEVICE   0x0001
  28. #define HANDTYPE_PIPE     0x0002
  29. #define HANDTYPE_NETWORK  0x8000
  30.  
  31. #endif
  32.  
  33. #endif /* WOS2_H_INCLUDED */
  34.