Codex API: Archives


The GetSupportedArchivesEx function obtains information on which archive types are supported for compression and/or decompression operations.


INT GetSupportedArchivesEx(
    LPTSTR lpSupportedArchives  // points to supported archive types



[out] Pointer to the buffer that receives the archive types supported for compression and/or extraction. The buffer is formatted as COMMATEXT. Each archive type is identified by its extension. The extension is typically three characters long and may contain file masks.

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

Return Values

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


For each of the returned archive types, compression support, decompression support, or both may be available.


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).
Declared in mCodexAPI.h.
Use mCodexAPI.dll.

See Also

Codex API Overview, Codex API Functions, GetCompressibleArchivesEx, GetExtractableArchivesEx