tHeaderDataExW structure

Top  Previous  Next

The structure is used in function ReadHeaderExW.

Syntax C++

typedef struct tHeaderDataExW {

                wchar_t      ArcName[1024];

                wchar_t      FileName[1024];

                unsigned int Flags;

                unsigned int PackSize;

                unsigned int PackSizeHigh;

                unsigned int UnpSize;

                unsigned int UnpSizeHigh;

                unsigned int HostOS;

                unsigned int FileCRC;

                unsigned int FileTime;

                unsigned int UnpVer;

                unsigned int Method;

                unsigned int FileAttr;

                char         *CmtBuf;

                unsigned int CmtBufSize;

                unsigned int CmtSize;

                unsigned int CmtState;

                char         Reserved[1024];

};

 

 

Members

FileName

Type: wchar_t[1024]*

File name with subfolders inside the archive.

Flags

Type: unsigned int

Plugin must fill these bit fields correctly according to the table (if it supports corresponding features):

Code

Comments

PK_HF_PREVVOL

0x0001

File is continued from the previous volume

PK_HF_NEXTVOL

0x0002

File is continued in the next volume

PK_HF_ENCRYPT

0x0004

File is protected by a password

PK_HF_COMMENT

0x0008

There are comments

PK_HF_SOLID

0x0010

File is packed with option "solid"

PackSize

Type: unsigned int

Lower 4 bytes of 64-bit file size after packing.

PackSizeHigh

Type: unsigned int

Higher 4 bytes of 64-bit file size after packing.

UnpSize

Type: unsigned int

Lower 4 bytes of 64-bit file size before packing.

UnpSizeHigh

Type: unsigned int

Higher 4 bytes of 64-bit file size before packing.

FileTime

Type: unsigned int

File modification date in MS DOS format.

Method

Type: unsigned int

The number of archiving methods. Specific for each archive.

FileAttr

Type: unsigned int

The bit field contains file attributes, according to the table:

Code

Comments

0x0001

Read only file

0x0002

Hidden file

0x0004

System file

0x0010

Is a folder. An important attribute. The plugin must define it.

0x0020

Archive file

0x0100

Temporary file

0x0400

File link

ArcName, HostOS, FileCRC, UnpVer, CmtBuf, CmtBufSize, CmtSize, CmtState

Not used at the moment, but may be defined.

Reserved

Type: char[1024]

Not used and may not change.