source: trunk/FileLockResolver.h @ 31

Revision 31, 1.6 KB checked in by lowjoel, 7 years ago (diff)

Standardize the header

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1// FileLockResolver.h
2// $Id$
3//
4// Eraser. Secure data removal. For Windows.
5// Copyright © 1997-2001  Sami Tolvanen (sami@tolvanen.com).
6// Copyright © 2001-2006  Garrett Trant (support@heidi.ie).
7//
8// This program is free software; you can redistribute it and/or
9// modify it under the terms of the GNU General Public License
10// as published by the Free Software Foundation; either version 2
11// of the License, or (at your option) any later version.
12//
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21// 02111-1307, USA.
22#pragma once
23#include "EraserDll.h"
24#include "EraserDoc.h"
25class ERASER_API CFileLockResolver
26{
27public:
28    CFileLockResolver(BOOL = FALSE);
29    CFileLockResolver(ERASER_HANDLE, BOOL);
30    ~CFileLockResolver(void);
31    void Close();
32    inline void AskUser(BOOL val)
33    {
34        m_bAskUser = val;
35    }
36    void SetHandle(ERASER_HANDLE);
37    static void Resolve(LPCTSTR szFileName, CStringArray&);
38    static void Resolve(LPCTSTR szFileName);
39private:
40    BOOL m_bAskUser;   
41    CString m_strLockFileList;
42    ERASER_HANDLE m_hHandle;
43    CEraserDoc m_Doc;
44private:
45    void HandleError(LPCTSTR szFileName, DWORD dwErrorCode, int method, unsigned int passes);
46    static DWORD ErrorHandler(LPCTSTR szFileName, DWORD dwErrorCode, void* ctx, void* param);
47};
Note: See TracBrowser for help on using the repository browser.