DoneMemPack

From TotalcmdWiki
Jump to navigation Jump to search

DoneMemPack ends packing into memory. This function is used together with StartMemPack and PackToMem.

 int __stdcall DoneMemPack (int hMemPack);

Description

Return value: DoneMemPack should return zero if successful, or one of the error codes otherwise.

  • hMemPack is the handle returned by StartMemPack.

It may be called in two different cases:

  1. The packing functions have completed successfully, or
  2. The user has aborted the packing operation.

The plugin should free all data allocated when packing.