1 /* -*- Mode: C++; c-basic-offset: 2; tab-width: 8; indent-tabs-mode: nil; -*- */
2 /*****************************************************************************
4 * This 7z Library is based the 7z Client and 7z Standalone Extracting Plugin
5 * code from the LZMA SDK.
6 * It is in the public domain (see http://www.7-zip.org/sdk.html).
8 * Any copyright in these files held by contributors to the Mozilla Project is
9 * also dedicated to the Public Domain.
10 * http://creativecommons.org/licenses/publicdomain/
13 * Alex Pakhotin <alexp@mozilla.com>
15 *****************************************************************************/
21 #define SZ_ERROR_DATA 1
22 #define SZ_ERROR_PARAM 5
23 #define SZ_ERROR_FAIL 11
24 #define SZ_ERROR_NO_ARCHIVE 17
26 const WCHAR
* GetExtractorError();
28 typedef void SzExtractProgressCallback(int nPercentComplete
);
33 int SzExtract(const WCHAR
*archiveName
,
34 const WCHAR
*fileToExtract
, const WCHAR
*outputDir
,
35 SzExtractProgressCallback
*progressCallback
);
37 int SzExtractSfx(const WCHAR
*archiveName
, DWORD sfxStubSize
,
38 const WCHAR
*fileToExtract
, const WCHAR
*outputDir
,
39 SzExtractProgressCallback
*progressCallback
);