EaseFilter Demo Project
|
CommonObjects/FileIOControlService.cs
Go to the documentation of this file.
24 public static bool IOAccessControl(FilterAPI.MessageSendData messageSend, ref FilterAPI.MessageReplyData messageReply)
38 //here you can control all the registered IO requests,block the access or modify the I/O data base on the file IO information from MessageSend struture
42 //if you don't want to change anything to this IO request, just let it pass through as below setting:
46 //if you want to block the access this IO request before it goes down to the file system, you can return the status as below,
47 //it is only for pre IO requests, it means the user IO reuqests will be completed here instead of going down to the file system.
51 //if you want to modify the IO data and complete the pre IO with your own data, you can return status as below:
52 // messageReply.FilterStatus = (uint)FilterAPI.FilterStatus.FILTER_COMPLETE_PRE_OPERATION | (uint)FilterAPI.FilterStatus.FILTER_DATA_BUFFER_IS_UPDATED;
76 //Here is the demo to copy file content before it was deleted.-----------------------------------------------
99 bool retVal = FilterAPI.GetFileHandleInFilter(messageSend.FileName,(uint)FileAccess.Read, ref fileHandle);
177 EventManager.WriteMessage(179, "IOAccessControl", EventLevel.Warning, "Block rename for file:" + messageSend.FileName);
236 EventManager.WriteMessage(174, "IOAccessControl", EventLevel.Error, "IOAccessControl failed." + ex.Message);
Definition: NtStatus.cs:18
static bool IOAccessControl(FilterAPI.MessageSendData messageSend, ref FilterAPI.MessageReplyData messageReply)
Definition: CommonObjects/FileIOControlService.cs:24
Services Overview
Architect, implement and test file system filter drivers for a wide range of functionality. We can offer several levels of assistance to meet your specific.
Contact Us
You are welcome to contact us for salse or partnership.
Sales: sales@easefilter.com
Support: support@easefilter.com
Info: info@easefilter.com