StartMemPack

From TotalcmdWiki
Revision as of 14:48, 18 April 2006 by Francoisal (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

StartMemPack starts packing into memory. This function is only needed if you want to create archives in combination with TAR, e.g. TAR.BZ2. It allows Totalcmd to create a TAR.Plugin file in a single step.

 int __stdcall StartMemPack (int Options, char *FileName);

Description

StartMemPack should return a user-defined handle (e.g. pointer to a structure) on success, zero otherwise.

  • FileName refers to the name of the file being packed - some packers store the name in the local header.
  • Options can contain a combination of the following values:
Constant Value Description
MEM_OPTIONS_WANTHEADERS 1 The output stream should include the complete headers (beginning+end)