Plugin options

Top  Previous  Next

When calling function ArcInitPluginW in bit field ArcInitPluginDataW.out_PackerCaps (or in deprecated function GetPackerCaps) following flags may be specified:

Code

Comments

PK_CAPS_NEW

1

Plugin may create new archive

PK_CAPS_MODIFY

2

Plugin may change existing archives

PK_CAPS_MULTIPLE

4

Plugin's archive may contains several files

PK_CAPS_DELETE

8

Plugin may delete files

PK_CAPS_OPTIONS

16

Plugin has Settings dialog (not used)

PK_CAPS_MEMPACK

32

Plugin supports into-memory packing

PK_CAPS_BY_CONTENT

64

Plugin can detect archive type by content

PK_CAPS_SEARCHTEXT

128

Plugin allows searching text in archive files.

 

This flag doesn't get set when, for instance, the archive isn't really an archive, i.e it contains just file list without any file contents.

PK_CAPS_HIDE

256

Show plugin's archives as regular files (hide archive icon, don't open on Enter, open only with Ctrl+PageDown).

The flag gets set for these files, not considered archives.

 

For instance, document files can be zip-archives.

It doesn't make sense to create very similar plugin for each file extension, to somewhere set or not set the flag.

The program has a special setting to specify files, which should not be considered archives.

PK_CAPS_ENCRYPT

512

Plugin supports file encryption (flag PK_PACKEX_ENCRYPT in function ArcPackFilesW).