source: trunk/EraserDlg.h @ 3

Revision 3, 2.8 KB checked in by lowjoel, 7 years ago (diff)

Added the source files from root (SVN migration commit 1)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1// EraserDlg.h
2//
3// Eraser. Secure data removal. For Windows.
4// Copyright © 1997-2001  Sami Tolvanen (sami@tolvanen.com).
5//
6// This program is free software; you can redistribute it and/or
7// modify it under the terms of the GNU General Public License
8// as published by the Free Software Foundation; either version 2
9// of the License, or (at your option) any later version.
10//
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14// GNU General Public License for more details.
15//
16// You should have received a copy of the GNU General Public License
17// along with this program; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19// 02111-1307, USA.
20
21#if !defined(AFX_ERASERDLG_H__52650794_F291_11D2_BBF3_00105AAF62C4__INCLUDED_)
22#define AFX_ERASERDLG_H__52650794_F291_11D2_BBF3_00105AAF62C4__INCLUDED_
23
24#if _MSC_VER > 1000
25#pragma once
26#endif // _MSC_VER > 1000
27
28#include "EraserDll\EraserDll.h"
29#include "EraserDll\FileLockResolver.h"
30/////////////////////////////////////////////////////////////////////////////
31// CEraserDlg dialog
32
33class CEraserDlg : public CDialog
34{
35// Construction
36public:
37    BOOL Erase();
38    BOOL Initialize(CPtrArray*);
39
40    CEraserDlg(CWnd* pParent = NULL);   // standard constructor
41
42    BOOL    m_bResultsForFiles;
43    BOOL    m_bResultsForUnusedSpace;
44    BOOL    m_bResultsOnlyWhenFailed;
45    DWORD   m_dwFinishAction;
46
47// Dialog Data
48    //{{AFX_DATA(CEraserDlg)
49    enum { IDD = IDD_DIALOG_ERASER };
50    CProgressCtrl   m_pcProgress;
51    CProgressCtrl   m_pcProgressTotal;
52    CString m_strData;
53    CString m_strErasing;
54    CString m_strMessage;
55    CString m_strPass;
56    CString m_strPercent;
57    CString m_strPercentTotal;
58    CString m_strTime;
59    //}}AFX_DATA
60
61    CFileLockResolver* m_pLockResolver;
62// Overrides
63    // ClassWizard generated virtual function overrides
64    //{{AFX_VIRTUAL(CEraserDlg)
65    protected:
66    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
67    //}}AFX_VIRTUAL
68
69// Implementation
70   
71protected:
72
73    ERASER_HANDLE   m_ehContext;
74
75    BOOL m_bShowResults;
76
77    CStringArray    m_saFiles;
78    CStringArray    m_saFolders;
79    CStringArray    m_saDrives;
80   
81
82    BOOL EraserWipeBegin();
83    BOOL EraserWipeUpdate();
84    BOOL EraserWipeDone();
85
86
87    // Generated message map functions
88    //{{AFX_MSG(CEraserDlg)
89    virtual void OnCancel();
90    virtual BOOL OnInitDialog();
91    afx_msg void OnDestroy();
92    //}}AFX_MSG
93    afx_msg LRESULT OnEraserNotify(WPARAM wParam, LPARAM lParam);
94    DECLARE_MESSAGE_MAP()
95};
96
97//{{AFX_INSERT_LOCATION}}
98// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
99
100#endif // !defined(AFX_ERASERDLG_H__52650794_F291_11D2_BBF3_00105AAF62C4__INCLUDED_)
Note: See TracBrowser for help on using the repository browser.