一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

michael_wp原创:用.net实现zip----4-2

时间:2008-01-12 编辑:简简单单 来源:一聚教程网

/// Global information about the zip file.
    [StructLayout(LayoutKind.Sequential)]
    internal struct ZipFileInfo {
        /// The number of entries in the directory.
        public UInt32 EntryCount;
        /// Length of zip file comment in bytes (8 bit characters).
        public UInt32 CommentLength;
    }
    [StructLayout(LayoutKind.Sequential)]
    internal struct ZipFileEntryInfo {
        public ZipDateTimeInfo DateTime;
        public UInt32 DosDate;
        public UInt32 InternalFileAttributes; // 2 bytes
        public UInt32 ExternalFileAttributes; // 4 bytes
    }
    /// Custom ZipLib date time structure.
    [StructLayout(LayoutKind.Sequential)]
    internal struct ZipDateTimeInfo {
        /// Seconds after the minute - [0,59]
        public UInt32 Seconds;

热门栏目