From TotalcmdWiki
Jump to: navigation, 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);


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)

Back to Packer plugins developer guide

Back to Packer plugins developer guide overview Back to GetPackerCaps Back to PackToMem Back to DoneMemPack