home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / ARCHIVE / PKZDATE.ZIP / PKZIP.H < prev   
Encoding:
C/C++ Source or Header  |  1989-09-14  |  1.4 KB  |  68 lines

  1.  
  2. /* This file contain information relating to the format of ZIP file. ZIP    */
  3. /* files are produced by PKZIP.EXE by PKWARE.                    */
  4.  
  5. #define LOCALHEADERSIG    0x04034b50L
  6. #define CENTRALDIRSIG    0x02014b50L
  7. #define ENDCENTRALSIG    0x06054b50L
  8.  
  9. /* These structures must be byte aligned */
  10.  
  11. #pragma pack(1)
  12.  
  13. /* Structure of the local file header */
  14.  
  15. struct LOCAL_HEADER
  16.   {
  17.   long    Signature;
  18.   int    Version;
  19.   int    BitFlag;
  20.   int    CompressionMethod;
  21.   unsigned FileTime;
  22.   unsigned FileDate;
  23.   long    CRC32;
  24.   long    CompressedSize;
  25.   long    UnCompressedSize;
  26.   int    FileNameLength;
  27.   int    ExtraFieldLength;
  28.   };
  29.  
  30. /* Structure of the central directory record */
  31. struct CENTRAL_RECORD
  32.   {
  33.   long    Signature;
  34.   int    VersionMadeBy;
  35.   int    VersionNeeded;
  36.   int    BitFlag;
  37.   int    CompressionMethod;
  38.   int    FileTime;
  39.   int    FileDate;
  40.   long    CRC32;
  41.   long    CompressedSize;
  42.   long    UnCompressedSize;
  43.   int    FileNameLength;
  44.   int    ExtraFieldLength;
  45.   int    CommentFieldLength;
  46.   int    DiskStartNumber;
  47.   int    InternalAttributes;
  48.   long    ExternalAttributes;
  49.   long    LocalHeaderOffset;
  50.   };
  51.  
  52. struct END_CENTRAL_RECORD
  53.   {
  54.   long    Signature;
  55.   int    DiskNumber;
  56.   int    DiskWithCentralDir;
  57.   int    DiskCentralDir;
  58.   int    CentralDirEntries;
  59.   long    CentralDirSize;
  60.   long    CentralDirOffset;
  61.   int    ZipCommentLength;
  62.   };
  63.  
  64. #define SIZELHR sizeof( struct LOCAL_HEADER )
  65. #define SIZECDR sizeof( struct CENTRAL_RECORD )
  66. #define SIZEEDR sizeof( struct END_CENTRAL_RECORD )
  67.  
  68.