📄 zipbuilddefs.h
字号:
#ifndef ZipBuildDefsH
#define ZipBuildDefsH
namespace ZipBuilder
{
// Unfortunately we can't put this line in the resource file.
const String RESOURCE_ERROR = "ZipMsgxx.res is probably not linked to the executable\nMissing String ID is: ";
// moved from zipbuilder.h to here because const in .h file prevent creation of
// pre-compiled header files
// Needed in ConvertOem2Iso function.
const int FS_FAT_ = 0;
const int FS_HPFS_ = 6;
const int FS_NTFS_ = 11;
const int DEF_HOST_VER = 0x0B16; // SysNo = 11 : NTFS; Verno = 22 :2.2
const long LocalFileHeaderSig = 0x04034B50; // 'PK34 (in file: 504B0304)'
const long CentralFileHeaderSig = 0x02014B50; // 'PK12'
const long EndCentralDirSig = 0x06054B50; // 'PK56'
const long ExtLocalSig = 0x08074B50; // 'PK78'
const int BUSY_ERROR = -255; // new 1.72y
const int LocalDirEntrySize = 42; // Fixed size of zip dir entry in local zip directory.
const String ZIPBUILDERVERSION = "1.73";
const String ZIPBUILDERBUILD = "1.73.3.2";
/* file version format changed to 1.72.0.2
1 - major version number : needs sync with TZipMaster
72 - minor : needs sync
0 - update : no sync
2 - build number : no sync */
// new constants 1.73
const int ZIPBUILDERVER = 173;
const int Min_ZipDll_Vers = 173;
const int Min_UnzDll_Vers = 173;
const char extend[256] = {0};
// constants for external attribute from stas.h
const int S_IFREG = 0x8000; // regular file
const int S_IFDIR = 0x4000; // directory
const int S_IREAD = 0x0100; // owner may read
const int S_IWRITE= 0x0080; // owner may write
const int S_IEXEC = 0x0040; // owner may execute (dir search)
// enums only for internal use
// new 1.73
enum ActionCodes {zacTick, zacItem, zacProgress,zacEndOfBatch, zacMessage, zacCount,
zacSize, zacNewName, zacPassword, zacCRCError, zacOverwrite, zacSkipped,
zacComment, zacStream, zacData, zacXItem, zacXProgress, zacDLL};
// new 1.73
enum ProgressCodes {zprFile, zprArchive, zprCopyTemp, zprSFX, zprHeader, zprFinish, zprCompressed,
zprCentral};
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -