HJUnzipDlg.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // HJUnzipDlg.h : 头文件
  2. //
  3. #pragma once
  4. #include <queue>
  5. #include "../SmartEvaluationLogic/ScanDll.h"
  6. // CHJUnzipDlg 对话框
  7. class CHJUnzipDlg : public CDialogEx
  8. {
  9. // 构造
  10. public:
  11. CHJUnzipDlg(CWnd* pParent = NULL); // 标准构造函数
  12. // 对话框数据
  13. enum { IDD = IDD_HJUNZIP_DIALOG };
  14. void DoDetectZipFile();
  15. void DoThreadScan();
  16. // 实现
  17. protected:
  18. HICON m_hIcon;
  19. // 生成的消息映射函数
  20. virtual BOOL OnInitDialog();
  21. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  22. afx_msg void OnPaint();
  23. afx_msg HCURSOR OnQueryDragIcon();
  24. afx_msg BOOL OnCopyData(CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct);
  25. afx_msg void OnTimer(UINT_PTR nIDEvent);
  26. DECLARE_MESSAGE_MAP()
  27. void DetectZipFile();
  28. void SetShareMemoryData(char* szParam);
  29. void RunScanExe(int batch_id);
  30. HANDLE m_hThreadDetect;
  31. HANDLE m_hThreadScan;
  32. wstring m_strModuleDir;
  33. wstring m_strShareDir;
  34. wstring m_strScanExePath;
  35. typedef struct tagScanPaper
  36. {
  37. int batch_id;
  38. int scan_umbers;
  39. int paper_cnt;
  40. __int64 scan_time;
  41. };
  42. queue<tagScanPaper> m_queueIds;
  43. RTL_CRITICAL_SECTION m_criticalIdsLock;
  44. };