Click or drag to resize

AutoLockFilter Class

IT Hit User File System
Filters application calls that should not auto-lock files.
Inheritance Hierarchy
SystemObject
  ITHit.FileSystem.WindowsFileSystemFilter
    ITHit.FileSystem.WindowsAutoLockFilter

Namespace:  ITHit.FileSystem.Windows
Assembly:  ITHit.FileSystem.Windows (in ITHit.FileSystem.Windows.dll) Version: 8.4.27341.0
Syntax
public class AutoLockFilter : FileSystemFilter

The AutoLockFilter type exposes the following members.

Constructors
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFilterAsync
Allows filtering file system items.
(Overrides FileSystemFilterFilterAsync(SyncDirection, OperationType, String, FileSystemItemType, String, IOperationContext).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldIgnoreList
Calling applications list to ignore while auto-locking.
Top
Remarks

If the application specified in IgnoreList list opens a file handle, the file will NOT be auto-locked.

Typically, you would want to ignore system applications that open documents for reading, such as Windows Explorer (explorer.exe) and Windows Indexing Service (SearchProtocolHost.exe).

You would also want to ignore applications that do not keep the open file handle when the document is being edited, such as Notepad (notepad.exe), Notepad++ (notepad++.exe), WordPad (wordpad.exe). There is no way to auto-lock the document when such application opens a file, because there is no indication that the file is opened.

See Also