using System; using System.Collections.Generic; using System.Text; namespace HH.WMS.Utils.ExcelLibrary.CompoundDocumentFormat { public class FileHeader { /// /// Compound document file identifier: D0H CFH 11H E0H A1H B1H 1AH E1H /// public byte[] FileTypeIdentifier; /// /// Unique identifier (UID) of this file (not of interest in the following, may be all 0) /// public Guid FileIdentifier; /// /// Revision number of the file format (most used is 003EH) /// public UInt16 RevisionNumber; /// /// Version number of the file format (most used is 0003H) /// public UInt16 VersionNumber; /// /// Byte order identifier: FEH FFH = Little-Endian FFH FEH = Big-Endian /// public byte[] ByteOrderMark; /// /// Size of a sector in the compound document file in power-of-two (ssz), /// (most used value is 9 which means 512 bytes, minimum value is 7 which means 128 bytes) /// public UInt16 SectorSizeInPot; /// /// Size of a short-sector in the short-stream container stream in power-of-two (ssz), /// (most used value is 6 which means 64 bytes, maximum value is sector size in power-of-two) /// public UInt16 ShortSectorSizeInPot; /// /// Not used /// public byte[] UnUsed10; /// /// Total number of sectors used for the sector allocation table /// public Int32 NumberOfSATSectors; /// /// SID of first sector of the directory stream /// public Int32 FirstSectorIDofDirectoryStream; /// /// Not used /// public byte[] UnUsed4; /// /// Minimum size of a standard stream (in bytes, most used size is 4096 bytes), /// streams smaller than this value are stored as short-streams /// public Int32 MinimumStreamSize; /// /// SID of first sector of the short-sector allocation table, /// or ¨C2 (End Of Chain SID) if not extant /// public Int32 FirstSectorIDofShortSectorAllocationTable; /// /// Total number of sectors used for the short-sector allocation table /// public Int32 NumberOfShortSectors; /// /// SID of first sector of the master sector allocation table, /// or ¨C2 (End Of Chain SID) if no additional sectors used /// public Int32 FirstSectorIDofMasterSectorAllocationTable; /// /// Total number of sectors used for the master sector allocation table /// public Int32 NumberOfMasterSectors; /// /// First part of the master sector allocation table containing 109 SIDs /// public Int32[] MasterSectorAllocationTable; } }