ZLibWrapLib.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //------------------------------------------------------------------------------
  2. //
  3. // Copyright (C) Streamlet. All rights reserved.
  4. //
  5. // File Name: ZLibWrapLib.h
  6. // Author: Streamlet
  7. // Create Time: 2010-09-14
  8. // Description:
  9. //
  10. // Version history:
  11. //
  12. //
  13. //
  14. //------------------------------------------------------------------------------
  15. #ifndef __ZLIBWRAPLIB_H_C9F256BA_4887_4C1C_A594_17452697B02B_INCLUDED__
  16. #define __ZLIBWRAPLIB_H_C9F256BA_4887_4C1C_A594_17452697B02B_INCLUDED__
  17. #include <Windows.h>
  18. //------------------------------------------------------------------------------
  19. // Description: Compress files to a ZIP file.
  20. // Parameter: lpszSourceFiles Source files, supporting wildcards.
  21. // Parameter: lpszDestFile The ZIP file path.
  22. // Parameter: bUtf8 If using UTF-8 to encode the file name.
  23. // Return Value: TRUE/FALSE.
  24. //------------------------------------------------------------------------------
  25. BOOL ZipCompress(LPCTSTR lpszSourceFiles, LPCTSTR lpszDestFile, bool bUtf8 = false);
  26. //------------------------------------------------------------------------------
  27. // Description: Extract files from a ZIP file.
  28. // Parameter: lpszSourceFile Source ZIP file.
  29. // Parameter: lpszDestFolder The folder to output files. The parent of the
  30. // specified folder MUST exist.
  31. // Return Value: TRUE/FALSE.
  32. //------------------------------------------------------------------------------
  33. BOOL ZipExtract(LPCTSTR lpszSourceFile, LPCTSTR lpszDestFolder);
  34. #endif // #ifndef __ZLIBWRAPLIB_H_C9F256BA_4887_4C1C_A594_17452697B02B_INCLUDED__