home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code1 / fcc110 / fcc.h < prev    next >
C/C++ Source or Header  |  1993-10-12  |  2KB  |  72 lines

  1. #ifndef _FCC_
  2. /*-----------------------------------------------------------------------*/
  3. #define _FCC_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9.  
  10. #define FCC_RDONLY         (1)
  11. #define FCC_CREATE         (2)
  12. #define FCC_WRITE          (4)
  13. #define FCC_WCACHE         (8)
  14.  
  15. #define FCC_SEEKSET        (1)
  16. #define FCC_SEEKCUR        (2)
  17. #define FCC_SEEKEND        (3)
  18.  
  19. #define FCC_ERR_OPEN       (1)
  20. #define FCC_ERR_WRITE      (2)
  21. #define FCC_ERR_READ       (3)
  22. #define FCC_ERR_CLOSE      (4)
  23. #define FCC_ERR_SEEK       (5)
  24. #define FCC_ERR_CACCESS    (6)
  25. #define FCC_ERR_VERSION    (7)
  26. #define FCC_ERR_NOMEM      (8)
  27. #define FCC_ERR_PARAM      (9)
  28. #define FCC_ERR_CANCELED   (10)
  29. #define FCC_ERR_UNKNOWN    (11)
  30.  
  31. #define FCC_CNONE          (-1)
  32. #define FCC_CDEFAULT       (0)
  33.  
  34. typedef struct {
  35.    int   whand;
  36.    int   message;
  37.    int   wparam;
  38.    long  lparam;
  39.    
  40.    int   cancel;
  41.    long  length;
  42.    long  plength;
  43.    long  curpos;
  44. } FCC_COPYT;
  45.  
  46. int FCCAPI FCC_open(
  47.       int   *handle,
  48.       char  *name,
  49.       int   flags,
  50.       int   compress,
  51.       int   kbytes,
  52.       int   blksize);
  53.  
  54. int FCCAPI FCC_close(int handle);
  55. int FCCAPI FCC_flush(int handle);
  56. int FCCAPI FCC_seek(int handle, long pos, int where, long *newpos);
  57. int FCCAPI FCC_read(int handle, void *buff, long bytes, long *rbytes);
  58. int FCCAPI FCC_write(int handle, void *buff, long bytes, long *wbytes);
  59. int FCCAPI FCC_tell(int handle, long *pos);
  60. int FCCAPI FCC_length(int handle, long *length);
  61. int FCCAPI FCC_plength(int handle, long *length);
  62. int FCCAPI FCC_exists(char *name, int *version, long *length, long *plength);
  63. int FCCAPI FCC_version(void);
  64. int FCCAPI FCC_copy(char *src, char *dst, int blksize, int compress, FCC_COPYT *progress);
  65.  
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69.  
  70. /*-----------------------------------------------------------------------*/
  71. #endif
  72.