UnzipDLL.h
上传用户:hzweiye
上传日期:2022-05-26
资源大小:4688k
文件大小:2k
源码类别:

压缩解压

开发平台:

Visual C++

  1. #ifndef UNZIPDLL_H
  2. #define UNZIPDLL_H
  3. #include "windows.h"
  4. #include "..stdafx.h"
  5. #include "ZCallBck.h"
  6. struct CUnzipParams
  7. {
  8. HWND m_wndHandle;
  9. void * m_pCaller;    /* "self" referance of the Delphi form */
  10.                      /* This is passed back to us in the callback function
  11.                      so we can direct the info to the proper form instance
  12.                      - thanks to Dennis Passmore for this idea. */
  13. long int m_liVersion;   /* version of DLL we expect to see */
  14. void* m_pfCallbackFunction; /* type def in ZCallBck.PAS */
  15. BOOL m_bTraceEnabled;
  16.          /*============== Begin UnZip Flag section ============== */
  17. BOOL m_bPromptToOverwrite;  // not used yet
  18. char* m_pszZipPassword;         // password pointer 
  19. BOOL m_bTest;               // if true, test zipfile, don't save extracted files
  20. BOOL m_bComments;           // show zip comment (not supported yet)
  21. BOOL m_bConvert;            // if true, do ASCII/EBCDIC or EOL translation
  22. BOOL m_bQuiet;              // DLL be quiet!
  23. BOOL m_bVerboseEnabled;     // verbose flag
  24. BOOL m_bUpdate;             // "update" (extract only newer files & brand new files)
  25. BOOL m_bFreshen;            // "freshen" (extract only newer files that already exist)
  26. BOOL m_bDirectories;        // if true, recreate dir structure
  27. BOOL m_bOverwrite;          // if true, overwrite existing (no asking)
  28.          /* Count of filespecs to extract - don't forget to set this! */
  29. long int m_liFileCount;
  30.          /* ptr to zipfile name */
  31. char *m_pszArchiveFileName;
  32. long int m_liSeven; /* pass a 7 here to validate struct size */
  33.          /* Array of filenames contained in the ZIP archive */
  34. char* m_pszFileNames[MAX_FILES];
  35. };
  36. /* Main call to execute a ZIP add or Delete.  This call returns the
  37.   number of files that were sucessfully operated on. */
  38. typedef DWORD (__stdcall *CUnzipDllExec)(CUnzipParams *pParams);
  39. typedef DWORD (__stdcall *CGetUnzipDllVersion)();
  40. #endif  //  UNZIPDLL_H