OpenArchive: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
== Description ==
== Description ==


OpenArchive should return a unique handle representing the archive. The handle should remain valid until [[CloseArchive]] is called. If an [[error]] occurs, you should return zero, and specify the [[error]] by setting OpenResult member of ''ArchiveData''.
OpenArchive should return a unique handle representing the archive. The handle should remain valid until [[CloseArchive]] is called. If an [[error]] occurs, you should return zero, and specify the [[Packer plugins developper errors|error]] by setting OpenResult member of ''ArchiveData''.


You can use the ''ArchiveData'' to query information about the archive being open, and store the information in ''ArchiveData'' to some location that can be accessed via the handle.
You can use the ''ArchiveData'' to query information about the archive being open, and store the information in ''ArchiveData'' to some location that can be accessed via the handle.

Revision as of 15:21, 18 April 2006

OpenArchive should perform all necessary operations when an archive is to be opened.

 HANDLE __stdcall OpenArchive (tOpenArchiveData *ArchiveData);

Description

OpenArchive should return a unique handle representing the archive. The handle should remain valid until CloseArchive is called. If an error occurs, you should return zero, and specify the error by setting OpenResult member of ArchiveData.

You can use the ArchiveData to query information about the archive being open, and store the information in ArchiveData to some location that can be accessed via the handle.