EaseFilter Demo Project
|
FileProtector/FileIOControlService.cs
Go to the documentation of this file.
25 public static bool IOAccessControl(FilterAPI.MessageSendData messageSend, ref FilterAPI.MessageReplyData messageReply)
36 //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
40 //if you don't want to change anything to this IO request, just let it pass through as below setting:
44 //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,
45 //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.
49 //if you want to modify the IO data and complete the pre IO with your own data, you can return status as below:
50 // messageReply.FilterStatus = (uint)FilterAPI.FilterStatus.FILTER_COMPLETE_PRE_OPERATION | (uint)FilterAPI.FilterStatus.FILTER_DATA_BUFFER_IS_UPDATED;
74 //Here is the demo to copy file content before it was deleted.-----------------------------------------------
97 bool retVal = FilterAPI.GetFileHandleInFilter(messageSend.FileName,(uint)FileAccess.Read, ref fileHandle);
224 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: FileProtector/FileIOControlService.cs:25
Definition: ConfigSetting.cs:17
Definition: CreateShareEncryptedFileForm.cs:22
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