home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / vrac / pclcjs.zip / CJSLIB.H < prev    next >
C/C++ Source or Header  |  1993-10-29  |  3KB  |  80 lines

  1. /* CJSLIB */
  2.  
  3. /* Typedefs */
  4. typedef struct {
  5.     char spec_func;        /* special functions */
  6.     char    dev_type;            /* device type */
  7.     int    dev_attr;            /* device attributes */
  8.     int    cyl;                /* number of cylinders */
  9.     char    med_type;            /* media type */
  10.     int    bytes_psec;        /* bytes per sector */
  11.     char    secs_pclus;        /* sectors per cluster */
  12.     int    res_secs;            /* reserved sectors */
  13.     char    fats;            /* number of file allocation tables */
  14.     int    root_ent;            /* max root directory entries */
  15.     int    sectors;            /* total number of sectors */
  16.     char    media;            /* media descriptor */
  17.     int    fat_secs;            /* number of sectors per FAT */
  18.     int    secs_ptrk;        /* number of sectors per track */
  19.     int    heads;            /* number of heads */
  20.     int (far *hid_secs)();    /* number of hidden sectors */
  21.     int (far *huge_secs)();    /* number of sectors (>32k partition) */
  22.     
  23. } DEVPARAMS;
  24.  
  25. typedef struct {
  26.     char infolevel;        /* information level */
  27.     long serialnum;        /* volume serial number */
  28.     char vollabel[11];        /* volume label */
  29.     char filesystype[8];    /* file system type */
  30.     
  31. } MID;
  32.  
  33. typedef char far * FPTR;
  34.  
  35.  
  36. /* #defines */
  37. /* video adapter constants */
  38. #define MDA_CARD    0     /* monochrome display adapter */
  39. #define CGA_CARD    1     /* color graphics adapter */
  40. #define EGA_CARD    2     /* enhanced graphics adapter */
  41. #define VGA_CARD    3     /* video graphics array */
  42. #define MCGA_CARD   4     /* multi-color graphics array */
  43. #define HERC_CARD   5     /* Hercules card */
  44.  
  45.  
  46. /* Function declarations */
  47. int sounder();
  48. int menubox(int r1,c1,r2,c2,color,boxtype,shadow,shade,max_rows);
  49. int text_box(int r1,c1,r2,c2,fill,color,max_rows);
  50. int color_time(char *format,int r1,c1,color,max_rows);
  51. int colortext(char text[], int r1, int c1, int color,max_rows);
  52. int colortext2(char text[], int r1, int c1, int color, int hilite, int hpos,max_rows);
  53. int repchar(char *s, char c, r);
  54. int remchar(char *s, char c);
  55. int pick_color();
  56. int ext_screen(int video_card);
  57. int normal_screen(video_card);
  58. int screen_lines();
  59. int play_cm1(char *song);
  60. int clear(int color);
  61. int Mstr_delenv (char far *Env, unsigned EnvSize, char far *name);
  62. int Mstr_putenv (char far *Env, unsigned EnvSize, char far *name);
  63. int get_dtype(int drive);
  64. int get_banv();
  65. int get_files();
  66. int check_time(char *this_time);
  67. int line_input(char *text, int text_length, int display_length);
  68. int random_files(char *mask, char *filename);
  69.  
  70. char *dirselect(char*, int);
  71.  
  72. char far *Mstr_getenv (char far *Env, char far *name);
  73.  
  74. void Mstr_FindEnvironment (char far **Env, unsigned *EnvSize);
  75. void remove_chars();
  76. void remove_digits();
  77. void epsonize(char *s, int c);
  78.  
  79.  
  80.