home *** CD-ROM | disk | FTP | other *** search
/ Chip Hitware 2 / Chip_Hitware_Vol_02.iso / chiphit2 / tools / system / pcinvent / extupd.h < prev    next >
C/C++ Source or Header  |  1995-03-30  |  2KB  |  50 lines

  1. /**************************************************************************
  2. EXTUPD.H - used by extupdo.obj and extupd.c 
  3.  
  4. the resulting executable updates the user's PC INVENTORY with the information
  5. provided by the manufacturer in hard_inv_rec.
  6.  
  7. 3-95 ...................... Mike Baharmast 
  8. ****************************************************************************/
  9.  
  10.  
  11. #include <stdio.h>
  12. #include <stdlib.h>
  13. #include <string.h>
  14. #include <io.h>
  15.  
  16. typedef struct { char szResource[40];
  17.                  char szTitle[40];
  18.                  char szName_Ad[120];
  19.                  char szMsc1[100];
  20.                  char szMsc2[120];
  21.                  char szDriver[800];
  22.                  char szIrq[20];
  23.                  char szIo_Ad[20];
  24.                  char szBase_Ad[20];
  25.                  char szDma[20];
  26.                  int bStatus;
  27.                } Hard_Inv_Rec;  /*1.3kb record*/
  28.  
  29.                
  30. Hard_Inv_Rec hard_inv_rec,inv_rec;  /*26kb dbase  */
  31.  
  32. typedef struct { char szSTitle[40];
  33.                  char szSNameAd[120];
  34.                  char szSCom[120];
  35.                  char szSDirs[1020];
  36.                  int bSStatus;
  37.                } SOFT_INV_REC;
  38.                
  39. SOFT_INV_REC soft_inv_rec,sinv_rec;               
  40.                
  41. int Rec_To_SIFILE(char *spath);
  42. int Rec_To_HIFILE(char *spath); /* returns: -2  MBS PC inventory nor registered
  43.                                             -1  harware inventory file didn't exist
  44.                                             11  replaced an existing record
  45.                                             10  replace failed
  46.                                             21  added a new record
  47.                                             20  add failed
  48.                                 */            
  49.  
  50.