home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tvos200.zip / TVISION / HARDDOS.CPP < prev    next >
C/C++ Source or Header  |  1995-04-25  |  1KB  |  47 lines

  1. /*------------------------------------------------------------*/
  2. /* filename -       harddos.cpp                               */
  3. /*                                                            */
  4. /* function(s)                                                */
  5. /*                  Member variables for THardwareInfo class  */
  6. /*                  under the MS/DOS (/+extender) OS.         */
  7. /*                                                            */
  8. /*------------------------------------------------------------*/
  9. /*
  10.  *      Turbo Vision - Version 2.0
  11.  *
  12.  *      Copyright (c) 1994 by Borland International
  13.  *      All Rights Reserved.
  14.  *
  15.  */
  16. #if defined(__MSDOS__)                  // Compile module for DOS only.
  17.  
  18. #define Uses_TKeys
  19. #define Uses_TEvent
  20. #define Uses_TScreen
  21. #define Uses_THardwareInfo
  22. #define Uses_TSystemError
  23. #include <tvision\tv.h>
  24.  
  25. //** DOS-specific THardwareInfo stuff..
  26. Boolean THardwareInfo::dpmiFlag;
  27. ushort THardwareInfo::colorSel;
  28. ushort THardwareInfo::monoSel;
  29. ushort THardwareInfo::biosSel;
  30.  
  31. uword THardwareInfo::getCaretSize()
  32. {
  33.     _AH = 3;
  34.     _BH = 0;
  35.     videoInt();
  36.     return _CX;
  37. }
  38.  
  39.  
  40.  
  41.  
  42.  
  43. //** Rest is in hardware.asm.
  44.  
  45. #endif
  46.  
  47.