UnZipManager.h 834 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #include "afxwin.h"
  3. #include <string>
  4. using namespace std;
  5. typedef void(*PirntLogPtr)(const wchar_t*);
  6. class CUnZipManager
  7. {
  8. public:
  9. CUnZipManager();
  10. ~CUnZipManager();
  11. void SetMainHwnd(HWND hwnd, PirntLogPtr pPrintLog);
  12. void OnClose();
  13. void ShowPrintDialog();
  14. void HidePrintDialog();
  15. void OnTaskStart();
  16. bool OnCopyData(CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct);
  17. int GetBatchCount() { return m_nBatchCount; }
  18. void DoMonitor();
  19. void RunJHUzip();
  20. wstring m_strUnZipPath; // 解压程序路径
  21. wstring m_strConfigPath; // config路径
  22. protected:
  23. void SendCopyData(const char* szParam);
  24. private:
  25. HANDLE m_hShareMemory;
  26. HANDLE m_hThreadMonitor;
  27. HWND m_hMainHwnd;
  28. HWND m_hPrintWnd;
  29. int m_nBatchCount;
  30. BOOL m_bMonitor;
  31. PROCESS_INFORMATION m_PrintProcStruct;
  32. PirntLogPtr m_pPrintLog;
  33. };