home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / vrac / biosin.zip / UTIL.H < prev    next >
C/C++ Source or Header  |  1994-04-08  |  3KB  |  105 lines

  1. /*
  2.   UTILS.LIB
  3.   Copyright (c) 1994 Jeffrey C. Moxon
  4.  
  5.   Clipper Runtime Utilities.
  6.  
  7.   Header File, provides description of each function in library.
  8.  
  9. */
  10.  
  11.   extern CLIPPER GET_FLOPPY(void);
  12.   /*
  13.      Returns type of floppy drive present.
  14.      Call from Clipper with A/B or 0/1.
  15.      Return values:
  16.             1      Not Installed.
  17.             2      360  KB 5.25 inch.
  18.             3      1.2  MB 5.25 inch.
  19.             4      720  KB 3.50 inch.
  20.             5      1.44 MB 3.50 inch.
  21.      Example:
  22.  
  23.      Local atypes := { "None", "360 KB", "1.2 MB", "720 KB", "1.44 MB" }
  24.      ? "Drive A is:  " +  atypes[GET_FLOPPY(0)]
  25.    */
  26.  
  27.    extern CLIPPER GET_HTYPE(void);
  28.    /*
  29.       Returns BIOS type of hard drive installed.
  30.       Call from Clipper with 0 or 1 for drive.
  31.       Returns 0 if not installed.
  32.  
  33.       Example:
  34.       ? "Hard Disk 0 is type:  " + Str(GET_BTYPE(0))
  35.     */
  36.  
  37.  
  38.     extern CLIPPER GET_MEM(void);
  39.     /*
  40.       Returns information about memory installed.
  41.       Call with 0 for conventional memory, 1 for extended.
  42.       This function only returns BIOS info, not 'free' memory.
  43.  
  44.       Example:
  45.       ? "Base Memory:      " +  Str(GET_MEM(0)) + "KB"
  46.       ? "Extended Memory:  " +  Str(GET_MEM(1)) + "KB"
  47.  
  48.     */
  49.  
  50.     extern CLIPPER GET_DRIVE(void);
  51.     /*
  52.       Returns current disk.
  53.  
  54.       Example:
  55.       ? "Currently on Drive " + CHR(GET_DRIVE() + 65) + ":"
  56.     */
  57.  
  58.     extern CLIPPER F_SIZES(void);
  59.     /*
  60.       Returns the total size of files in current directory.
  61.       Call with Filename, wildcards OK.
  62.  
  63.       Example:
  64.       ? "Total of " + Str(F_SIZES("*.DBF")) + "Bytes in databases."
  65.     */
  66.  
  67.     extern CLIPPER GET_CPU(void);
  68.     /*
  69.       Returns the type of CPU present in the system.
  70.       9       80486
  71.       8       80386
  72.       7       80286
  73.       6       80186
  74.       5       80188
  75.       4       NEC v30
  76.       3       NEC v20
  77.       2       8086
  78.       1       8088
  79.  
  80.       Example:
  81.       Local cputype := { "8088", "8086", "NEC v20", "NEC v30", "80188", ;
  82.             "80186", "80286", "80386", "80486" }
  83.       ? "CPU:  " + cputype[GET_CPU()]
  84.  
  85.     */
  86.  
  87.      extern CLIPPER FILL_SCR(void);  //Does NOT Function in Protected Mode
  88.      /*
  89.        Fill Screen with character string, in requested color
  90.  
  91.        Example:
  92.        FILL_SCR(" Hi! ", 78)  //78 is Yellow on Red
  93.      */
  94.  
  95.      extern CLIPPER BOOT(void);
  96.      /*
  97.        Re-Boot System
  98.        Call with 0 for CTRL-ALT-DEL, or with 1 for RESET
  99.  
  100.        Example:
  101.        BOOT(0) //CTRL-ALT-DEL
  102.      */
  103.  
  104.  
  105.