Codex API: Plug-Ins

GetArchiveFunctionsByPlugInEx

The GetArchiveFunctionsByPlugInEx function obtains the list of supported archive functions for the chosen archive format provided by the chosen plug-in.

 

INT GetArchiveFunctionsByPlugInEx(
    LPCTSTR lpArchive,              // archive format
    LPCTSTR lpPlugIn                // name of plug-in
    LPTSTR lpFunctions              // plug-in functions
);

Parameters

lpArchive

[in] Pointer to a null-terminated string that specifies the archive format for which information is requested. This archive format must be supported by the plug-in specified in the lpPlugIn parameter.

Information on which archives are supported by which plug-ins may be obtained using the GetArchivesByPlugInEx function.

lpPlugIn

[in] Pointer to a null-terminated string that specifies the name of the plug-in for which archive support information should be returned.

This name may be obtained using the GetPlugInsEx function.

lpFunctions

[out] Pointer to a buffer that receives the list of all archive functions supported by the indicated plug-in for the given archive type. The list is formatted as COMMATEXT.

Pass NULL in this parameter to request the required size for the buffer.

Below is the list of standard Codex defined archive functions: 

Function

Meaning

List Archive Contents

The plug-in supports enumeration of files contained inside archives of this type.

Compress

The plug-in supports compressing files into archives of this type. Whether existing archives may be updated with new files is not specified.

Compression Settings

The plug-in supports user configuration of compression settings for this archive type.

Extract

The plug-in supports extracting files from archives of this type.

Extraction Settings

The plug-in supports user configuration of extraction settings for this archive type.

In addition to the standard functions above, each plug-in may define custom functions that are specific to the archive types they work with. For instance, ZIP archives support comments, therefore a custom plug-in function for ZIP archives may be "Edit Comment".

Return Values

The return value specifies the required size of the buffer, excluding the number of bytes necessary for a terminating null character.

Requirements

Windows NT/2000/XP: Requires Windows NT 4.0 SP4 or later.
Windows 95/98/Me:
Requires Windows 98 (or Windows 95 with DCOM 1.2).
Header:
Declared in mCodexAPI.h.
Library:
Use mCodexAPI.dll.

See Also

Codex API Overview, Codex API Functions, GetPlugInsEx, GetArchivesByPlugInEx, COMMATEXT