Code Monkey home page Code Monkey logo

filemonitorexample's Introduction

The File Monitor Filter Driver SDK is a kernel-mode component that runs as part of the Windows executive above the file system. The file system filter driver can intercept requests targeted at a file system or another file system filter driver. By intercepting the request before it reaches its intended target, the filter driver can extend or replace functionality provided by the original target of the request. The EaseFilter file system filter driver can log, observe, modify, or even prevent the I/O operations for one or more file systems or file system volumes.

File Monitor

File I/O Monitor

The file I/O monitor can audit file access and change in Windows in Real-Time. With the file monitor you can monitor the file activities on file system level, capture file open, create, overwrite, read, write, query file information, set file information, query security information, set security information, file rename, file delete, directory browsing and file close I/O requests. You can create the file access log, you will know who, when, what files were accessed. You can get comprehensive control and visibility over users and data by tracking and monitoring all the user & file activities, permission changes, storage capacity and generate real-time audit reports.

Monitor the file changed I/O by registering the file change events.

You can get the notification when the managed files were changed by registering the file change events:

  • NotifyFileWasCreated: Fires this event when the new file was created after the file handle closed.
  • NotifyFileWasWritten: Fires this event when the file was written after the file handle closed.
  • NotifyFileWasRenamed: Fires this event when the file was moved or renamed after the file handle closed.
  • NotifyFileWasDeleted: Fires this event when the file was deleted after the file handle closed.
  • NotifyFileSecurityWasChanged: Fires this event when the file's security was changed after the file handle closed.
  • NotifyFileInfoWasChanged: Fires this event when the file's information was changed after the file handle closed.

Monitor all the file I/O by registering the I/O callback notification events.

You can register the file I/O events to monitor the file access I/O in the file filter rule. By registering the specific I/O events, you can get file I/O information in real time.

  • OnPostFileCreate: Fires this event after the file create IO was returned from the file system.
  • OnPostFileRead: Fires this event after the file read IO was returned from the file system.
  • OnPostFileWrite: Fires this event after the file write IO was returned from the file system.
  • OnPostQueryFileSize: Fires this event after the query file size IO was returned from the file system.
  • OnPostQueryFileBasicInfo: Fires this event after the query file basic info IO was returned from the file system.
  • OnPostQueryFileStandardInfo: Fires this event after the query file standard info IO was returned from the file system.
  • OnPostQueryFileNetworkInfo: Fires this event after the query file network info IO was returned from the file system.
  • OnPostQueryFileId: Fires this event after the query file Id IO was returned from the file system.
  • OnPostQueryFileInfo: Fires this event after the query file info IO was returned from the file system.
  • OnPostSetFileSize: Fires this event after the set file size IO was returned from the file system.
  • OnPostSetFileBasicInfo: Fires this event after the set file basic info IO was returned from the file system.
  • OnPostSetFileStandardInfo: Fires this event after the set file standard info IO was returned from the file system.
  • OnPostSetFileNetworkInfo: Fires this event after the set file network info was returned from the file system.
  • OnPostMoveOrRenameFile: Fires this event after the file move or rename IO was returned from the file system.
  • OnPostDeleteFile: Fires this event after the file delete IO was returned from the file system.
  • OnPostSetFileInfo: Fires this event after the set file info IO was returned from the file system.
  • OnPostQueryDirectoryFile: Fires this event after the query directory file info was returned from the file system.
  • OnPostQueryFileSecurity: Fires this event after the query file security IO was returned from the file system.
  • OnPostSetFileSecurity: Fires this event after the set file security IO was returned from the file system.
  • OnPostFileHandleClose: Fires this event after the file handle close IO was returned from the file system.
  • OnPostFileClose: Fires this event after the file close IO was returned from the file system.

Create C# file monitor example with SDK

This C# example creates a filter rule to watch the directory specified at run time. The component is set to watch for all file change in the directory. If a file was changed, the file name, file change type, user name, process name will be printed to the console. The component also is set to watch the file open and file read IO, the IO was triggered, the file open and file read information will be printed to the console.

Here is the output from the file monitor example.

File Monitor output

Read more about file monitor example

filemonitorexample's People

Contributors

easefiltersdk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.