1 /* Copyright 2001 Rien Croonenborghs, Ben Kibbey, Shaun Jackman 2 3 This file is part of lcab. 4 lcab is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2 of the License, or 7 (at your option) any later version. 8 lcab is distributed in the hope that it will be useful, 9 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 GNU General Public License for more details. 12 You should have received a copy of the GNU General Public License 13 along with lcab; if not, write to the Free Software 14 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 15 */ 16 17 #ifndef MYTYPESH 18 #include "mytypes.h" 19 #endif 20 21 #ifndef CSTRUCTH 22 #define CSTRUCTH 23 24 struct cheader 25 { 26 byte sig[4]; 27 dword res1; 28 dword size; 29 dword res2; 30 dword offsetfiles; 31 dword res3; 32 byte versionMIN; 33 byte versionMAJ; 34 word nfolders; 35 word nfiles; 36 word flags; 37 word setID; 38 word cabID; 39 }; 40 41 struct cfolder 42 { 43 dword offsetdata; 44 word ndatab; 45 word typecomp; 46 }; 47 48 struct cfile 49 { 50 dword usize; 51 dword uoffset; 52 word index; 53 word date; 54 word time; 55 word fattr; 56 byte name[MAXSIZE]; 57 }; 58 59 struct cdata 60 { 61 dword checksum; 62 word ncbytes; 63 word nubytes; 64 }; 65 66 #endif 67