11 #define MSPACK_CAB_H 1
16 #define cfhead_Signature (0x00)
17 #define cfhead_CabinetSize (0x08)
18 #define cfhead_FileOffset (0x10)
19 #define cfhead_MinorVersion (0x18)
20 #define cfhead_MajorVersion (0x19)
21 #define cfhead_NumFolders (0x1A)
22 #define cfhead_NumFiles (0x1C)
23 #define cfhead_Flags (0x1E)
24 #define cfhead_SetID (0x20)
25 #define cfhead_CabinetIndex (0x22)
26 #define cfhead_SIZEOF (0x24)
27 #define cfheadext_HeaderReserved (0x00)
28 #define cfheadext_FolderReserved (0x02)
29 #define cfheadext_DataReserved (0x03)
30 #define cfheadext_SIZEOF (0x04)
31 #define cffold_DataOffset (0x00)
32 #define cffold_NumBlocks (0x04)
33 #define cffold_CompType (0x06)
34 #define cffold_SIZEOF (0x08)
35 #define cffile_UncompressedSize (0x00)
36 #define cffile_FolderOffset (0x04)
37 #define cffile_FolderIndex (0x08)
38 #define cffile_Date (0x0A)
39 #define cffile_Time (0x0C)
40 #define cffile_Attribs (0x0E)
41 #define cffile_SIZEOF (0x10)
42 #define cfdata_CheckSum (0x00)
43 #define cfdata_CompressedSize (0x04)
44 #define cfdata_UncompressedSize (0x06)
45 #define cfdata_SIZEOF (0x08)
48 #define cffoldCOMPTYPE_MASK (0x000f)
49 #define cffoldCOMPTYPE_NONE (0x0000)
50 #define cffoldCOMPTYPE_MSZIP (0x0001)
51 #define cffoldCOMPTYPE_QUANTUM (0x0002)
52 #define cffoldCOMPTYPE_LZX (0x0003)
53 #define cfheadPREV_CABINET (0x0001)
54 #define cfheadNEXT_CABINET (0x0002)
55 #define cfheadRESERVE_PRESENT (0x0004)
56 #define cffileCONTINUED_FROM_PREV (0xFFFD)
57 #define cffileCONTINUED_TO_NEXT (0xFFFE)
58 #define cffileCONTINUED_PREV_AND_NEXT (0xFFFF)
66 #define CAB_BLOCKMAX (32768)
67 #define CAB_INPUTMAX (CAB_BLOCKMAX+6144)
75 #define CAB_INPUTMAX_SALVAGE (65535)
76 #define CAB_INPUTBUF (CAB_INPUTMAX_SALVAGE + 1)
82 #define CAB_FOLDERMAX (65535)
83 #define CAB_LENGTHMAX (CAB_BLOCKMAX * CAB_FOLDERMAX)
struct mscab_compressor base
struct mspack_system * system
struct mscab_decompressor base
struct mspack_system * system
struct mscabd_decompress_state * d
struct mscabd_cabinet base
struct mspack_file * infh
struct mscabd_cabinet_p * incab
unsigned char input[CAB_INPUTBUF]
struct mscabd_folder_p * folder
int(* decompress)(void *, off_t)
struct mscabd_folder_data * data
struct mspack_file * outfh
struct mscabd_cabinet_p * cab
struct mscabd_folder_data * next
struct mscabd_folder base
struct mscabd_folder_data data
struct mscabd_file * merge_next
struct mscabd_file * merge_prev