home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / OPSYS.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  733b  |  29 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4.  *  OPSYS.H  Operating environment detection and time-slicing support for
  5.  *           MS-DOS applications.
  6.  *
  7.  *  Written in June 1996 by Andrew Clarke and released to the public domain.
  8.  */
  9.  
  10. #ifndef __OPSYS_H__
  11. #define __OPSYS_H__
  12.  
  13. #define OS_MSDOS     0  /* MS-DOS */
  14. #define OS_OS2       1  /* IBM OS/2 */
  15. #define OS_WINDOWS   2  /* Microsoft Windows */
  16. #define OS_DESQVIEW  3  /* Quarterdeck DESQview */
  17. #define OS_DBLDOS    4  /* DoubleDOS */
  18. #define OS_NETWARE   5  /* Novell Netware */
  19.  
  20. extern int opsys_id;
  21.  
  22. int opsysDetect(void);
  23. void opsysTimeSlice(void);
  24. #ifndef __EMX__
  25. unsigned short opsysGetVideoSeg(unsigned short assumed_base);
  26. #endif
  27.  
  28. #endif
  29.