前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >windows 文件监控

windows 文件监控

原创
作者头像
Windows技术交流
发布2021-09-01 21:00:13
1.1K0
发布2021-09-01 21:00:13
举报
文章被收录于专栏:Windows技术交流Windows技术交流

关于windows文件监控,EaseFilter FileMonitor SDK vs FileSystemWatcher,FileSystemWatcher Class 不能到用户级别,EaseFilter FileMonitor SDK 可以到用户名和进程名级别

精细文件监控需要用户自己实现,Windows系统功能有限,一般的精细监控都是第三方软件实现好的付费拿来用,要么就自己开发

EaseFilter FileMonitor SDK vs FileSystemWatcher Class

[FileSystemWatcher Class]

https://docs.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher

[EaseFilter FileMonitor SDK]

https://www.easefilter.com/kb/FileSystemWatcher.htm

The features EaseFilter FileMonitor SDK has, but FileSystemWatcher doesn't have

1.Track who changed the file in the folder with the requestor's user name and process name of the file event.

The EaseFilter FileMonitor SDK can provide the user name and process name for every callback file Io. You will know who ( user name and process name) accessed your files when the file was accessed or changed in real time. If the file was accessed by network share, the EaseFilter file monitor also can provide the remote IP address.

2.The file IO information

The EaseFilter FileMonitor SDK not only provides the file name, but also provides the file size, file attributes, file time information in the callback event.

3.The file IO activities.

·The file open or file create IO

Reference CreateFile or FltCreateFile API, you will know how the file was opened. In the file open/create callback event, you will know the file open option "DesiredAccess","CreateOption", "Disposition". You will know the status of the file open: if the status is succeeded, you will know that the file was opened or created sucessfully, if the file open is failed, you will know the reason of the file open failure.

·The read file IO

Reference ReadFile or FltReadFile API, you will know how the file was read. In the file read callback event, you will know the read offset, read length information, if the read succeeded, you will get the read data.

·The write file IO

Reference WriteFile or FltWriteFile API, you will know how the file was written. In the file write callback event, you will know the write offset, write lenght information, written data to the file.

·The file rename IO

Reference MoveFile API, you will get the file rename callback event with the new file name, the requestor's user name and processname

·The delete file IO

Reference DeleteFile API, you will get the file delete callback event with the file information, the requestor's user name and process name.

·The get file size or set file size IO

Reference GetFileSize, SetEndOfFile API, you will get the file size information if the file size query was succeeded, you will know the file size was set for the set file size IO.

·The query or set file attribue, file last access time, file last write time, file creation time IO

Reference GetFileAttributes, SetFileAttributes, GetFileTime and SetFileTime API, you will get the file attributes and file time information with the callback event.

·The query or set file security IO

Reference GetSecurityInfo, SetSecurityInfo API, you will the file security descriptor was queried or set in the callback event.

·The directory file list IO

Reference FindFirstFile and FindNextFile API, you will get the file list of the directory in the callback event.

·The file handle close IO

Reference CloseHandle API, you will get the file information in the file handle close callback event.

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • EaseFilter FileMonitor SDK vs FileSystemWatcher Class
  • [FileSystemWatcher Class]
  • [EaseFilter FileMonitor SDK]
  • https://www.easefilter.com/kb/FileSystemWatcher.htm
  • The features EaseFilter FileMonitor SDK has, but FileSystemWatcher doesn't have
  • 1.Track who changed the file in the folder with the requestor's user name and process name of the file event.
  • 2.The file IO information
  • 3.The file IO activities.
    • ·The file open or file create IO
      • ·The read file IO
        • ·The write file IO
          • ·The file rename IO
            • ·The delete file IO
              • ·The get file size or set file size IO
                • ·The query or set file security IO
                  • ·The directory file list IO
                    • ·The file handle close IO
                    相关产品与服务
                    云服务器
                    云服务器(Cloud Virtual Machine,CVM)提供安全可靠的弹性计算服务。 您可以实时扩展或缩减计算资源,适应变化的业务需求,并只需按实际使用的资源计费。使用 CVM 可以极大降低您的软硬件采购成本,简化 IT 运维工作。
                    领券
                    问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档