Rizin
unix-like reverse engineering framework and cli tools
cab.h File Reference

Go to the source code of this file.

Classes

struct  mscab_compressor_p
 
struct  mscabd_decompress_state
 
struct  mscab_decompressor_p
 
struct  mscabd_cabinet_p
 
struct  mscabd_folder_data
 
struct  mscabd_folder_p
 

Macros

#define cfhead_Signature   (0x00)
 
#define cfhead_CabinetSize   (0x08)
 
#define cfhead_FileOffset   (0x10)
 
#define cfhead_MinorVersion   (0x18)
 
#define cfhead_MajorVersion   (0x19)
 
#define cfhead_NumFolders   (0x1A)
 
#define cfhead_NumFiles   (0x1C)
 
#define cfhead_Flags   (0x1E)
 
#define cfhead_SetID   (0x20)
 
#define cfhead_CabinetIndex   (0x22)
 
#define cfhead_SIZEOF   (0x24)
 
#define cfheadext_HeaderReserved   (0x00)
 
#define cfheadext_FolderReserved   (0x02)
 
#define cfheadext_DataReserved   (0x03)
 
#define cfheadext_SIZEOF   (0x04)
 
#define cffold_DataOffset   (0x00)
 
#define cffold_NumBlocks   (0x04)
 
#define cffold_CompType   (0x06)
 
#define cffold_SIZEOF   (0x08)
 
#define cffile_UncompressedSize   (0x00)
 
#define cffile_FolderOffset   (0x04)
 
#define cffile_FolderIndex   (0x08)
 
#define cffile_Date   (0x0A)
 
#define cffile_Time   (0x0C)
 
#define cffile_Attribs   (0x0E)
 
#define cffile_SIZEOF   (0x10)
 
#define cfdata_CheckSum   (0x00)
 
#define cfdata_CompressedSize   (0x04)
 
#define cfdata_UncompressedSize   (0x06)
 
#define cfdata_SIZEOF   (0x08)
 
#define cffoldCOMPTYPE_MASK   (0x000f)
 
#define cffoldCOMPTYPE_NONE   (0x0000)
 
#define cffoldCOMPTYPE_MSZIP   (0x0001)
 
#define cffoldCOMPTYPE_QUANTUM   (0x0002)
 
#define cffoldCOMPTYPE_LZX   (0x0003)
 
#define cfheadPREV_CABINET   (0x0001)
 
#define cfheadNEXT_CABINET   (0x0002)
 
#define cfheadRESERVE_PRESENT   (0x0004)
 
#define cffileCONTINUED_FROM_PREV   (0xFFFD)
 
#define cffileCONTINUED_TO_NEXT   (0xFFFE)
 
#define cffileCONTINUED_PREV_AND_NEXT   (0xFFFF)
 
#define CAB_BLOCKMAX   (32768)
 
#define CAB_INPUTMAX   (CAB_BLOCKMAX+6144)
 
#define CAB_INPUTMAX_SALVAGE   (65535)
 
#define CAB_INPUTBUF   (CAB_INPUTMAX_SALVAGE + 1)
 
#define CAB_FOLDERMAX   (65535)
 
#define CAB_LENGTHMAX   (CAB_BLOCKMAX * CAB_FOLDERMAX)
 

Macro Definition Documentation

◆ CAB_BLOCKMAX

#define CAB_BLOCKMAX   (32768)

Definition at line 66 of file cab.h.

◆ CAB_FOLDERMAX

#define CAB_FOLDERMAX   (65535)

Definition at line 82 of file cab.h.

◆ CAB_INPUTBUF

#define CAB_INPUTBUF   (CAB_INPUTMAX_SALVAGE + 1)

Definition at line 76 of file cab.h.

◆ CAB_INPUTMAX

#define CAB_INPUTMAX   (CAB_BLOCKMAX+6144)

Definition at line 67 of file cab.h.

◆ CAB_INPUTMAX_SALVAGE

#define CAB_INPUTMAX_SALVAGE   (65535)

Definition at line 75 of file cab.h.

◆ CAB_LENGTHMAX

#define CAB_LENGTHMAX   (CAB_BLOCKMAX * CAB_FOLDERMAX)

Definition at line 83 of file cab.h.

◆ cfdata_CheckSum

#define cfdata_CheckSum   (0x00)

Definition at line 42 of file cab.h.

◆ cfdata_CompressedSize

#define cfdata_CompressedSize   (0x04)

Definition at line 43 of file cab.h.

◆ cfdata_SIZEOF

#define cfdata_SIZEOF   (0x08)

Definition at line 45 of file cab.h.

◆ cfdata_UncompressedSize

#define cfdata_UncompressedSize   (0x06)

Definition at line 44 of file cab.h.

◆ cffile_Attribs

#define cffile_Attribs   (0x0E)

Definition at line 40 of file cab.h.

◆ cffile_Date

#define cffile_Date   (0x0A)

Definition at line 38 of file cab.h.

◆ cffile_FolderIndex

#define cffile_FolderIndex   (0x08)

Definition at line 37 of file cab.h.

◆ cffile_FolderOffset

#define cffile_FolderOffset   (0x04)

Definition at line 36 of file cab.h.

◆ cffile_SIZEOF

#define cffile_SIZEOF   (0x10)

Definition at line 41 of file cab.h.

◆ cffile_Time

#define cffile_Time   (0x0C)

Definition at line 39 of file cab.h.

◆ cffile_UncompressedSize

#define cffile_UncompressedSize   (0x00)

Definition at line 35 of file cab.h.

◆ cffileCONTINUED_FROM_PREV

#define cffileCONTINUED_FROM_PREV   (0xFFFD)

Definition at line 56 of file cab.h.

◆ cffileCONTINUED_PREV_AND_NEXT

#define cffileCONTINUED_PREV_AND_NEXT   (0xFFFF)

Definition at line 58 of file cab.h.

◆ cffileCONTINUED_TO_NEXT

#define cffileCONTINUED_TO_NEXT   (0xFFFE)

Definition at line 57 of file cab.h.

◆ cffold_CompType

#define cffold_CompType   (0x06)

Definition at line 33 of file cab.h.

◆ cffold_DataOffset

#define cffold_DataOffset   (0x00)

Definition at line 31 of file cab.h.

◆ cffold_NumBlocks

#define cffold_NumBlocks   (0x04)

Definition at line 32 of file cab.h.

◆ cffold_SIZEOF

#define cffold_SIZEOF   (0x08)

Definition at line 34 of file cab.h.

◆ cffoldCOMPTYPE_LZX

#define cffoldCOMPTYPE_LZX   (0x0003)

Definition at line 52 of file cab.h.

◆ cffoldCOMPTYPE_MASK

#define cffoldCOMPTYPE_MASK   (0x000f)

Definition at line 48 of file cab.h.

◆ cffoldCOMPTYPE_MSZIP

#define cffoldCOMPTYPE_MSZIP   (0x0001)

Definition at line 50 of file cab.h.

◆ cffoldCOMPTYPE_NONE

#define cffoldCOMPTYPE_NONE   (0x0000)

Definition at line 49 of file cab.h.

◆ cffoldCOMPTYPE_QUANTUM

#define cffoldCOMPTYPE_QUANTUM   (0x0002)

Definition at line 51 of file cab.h.

◆ cfhead_CabinetIndex

#define cfhead_CabinetIndex   (0x22)

Definition at line 25 of file cab.h.

◆ cfhead_CabinetSize

#define cfhead_CabinetSize   (0x08)

Definition at line 17 of file cab.h.

◆ cfhead_FileOffset

#define cfhead_FileOffset   (0x10)

Definition at line 18 of file cab.h.

◆ cfhead_Flags

#define cfhead_Flags   (0x1E)

Definition at line 23 of file cab.h.

◆ cfhead_MajorVersion

#define cfhead_MajorVersion   (0x19)

Definition at line 20 of file cab.h.

◆ cfhead_MinorVersion

#define cfhead_MinorVersion   (0x18)

Definition at line 19 of file cab.h.

◆ cfhead_NumFiles

#define cfhead_NumFiles   (0x1C)

Definition at line 22 of file cab.h.

◆ cfhead_NumFolders

#define cfhead_NumFolders   (0x1A)

Definition at line 21 of file cab.h.

◆ cfhead_SetID

#define cfhead_SetID   (0x20)

Definition at line 24 of file cab.h.

◆ cfhead_Signature

#define cfhead_Signature   (0x00)

Definition at line 16 of file cab.h.

◆ cfhead_SIZEOF

#define cfhead_SIZEOF   (0x24)

Definition at line 26 of file cab.h.

◆ cfheadext_DataReserved

#define cfheadext_DataReserved   (0x03)

Definition at line 29 of file cab.h.

◆ cfheadext_FolderReserved

#define cfheadext_FolderReserved   (0x02)

Definition at line 28 of file cab.h.

◆ cfheadext_HeaderReserved

#define cfheadext_HeaderReserved   (0x00)

Definition at line 27 of file cab.h.

◆ cfheadext_SIZEOF

#define cfheadext_SIZEOF   (0x04)

Definition at line 30 of file cab.h.

◆ cfheadNEXT_CABINET

#define cfheadNEXT_CABINET   (0x0002)

Definition at line 54 of file cab.h.

◆ cfheadPREV_CABINET

#define cfheadPREV_CABINET   (0x0001)

Definition at line 53 of file cab.h.

◆ cfheadRESERVE_PRESENT

#define cfheadRESERVE_PRESENT   (0x0004)

Definition at line 55 of file cab.h.