EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Clarity on Set Filter

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#33785
Posted: 06/25/2015 03:25:01
by Manoj Jain (Standard support level)
Joined: 02/28/2013
Posts: 94

I need to know can I add additional filter when filter is already active?


I explain further:

1. I use AddFilterCallbackRule() to add few filters
2. Then call AttachFilter()

That means Active() is TRUE.

Now I want to add some more filters using AddFilterCallbackRule()

Can I do it without called DetachFilter()

Because there are several processes which may be using callbackfilter already and I cannot stop those process or detachfilter();

I have installed only one instance of driver and only one program

Thanks in Advance
#33786
Posted: 06/25/2015 04:26:05
by Vladimir Cherniga (EldoS Corp.)

You may add filter rules dynamically, without detaching the filter. In case of filter in active state, callback rule will be applied immediately. If filter not active, filter rule will be applied on AttachFilter() call.
By the way, you may create up to 256 CallbackFilter class instances, that will work simultaneously.
#33789
Posted: 06/25/2015 09:51:36
by Manoj Jain (Standard support level)
Joined: 02/28/2013
Posts: 94

That's wonderful

I am also able to delete filter at run time ... success


One issue ...

What if call AttachFilter() without any rule set?

Or should I set at least one filter rule?
#33790
Posted: 06/25/2015 10:01:32
by Vladimir Cherniga (EldoS Corp.)

Quote
Manoj Jain wrote:
Or should I set at least one filter rule?

It doesn't matter. There are no special requirements in AttachFilter() usage. I would suggest to do it in try...except block to catch the possible error situations.

Reply

Statistics

Topic viewed 2883 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!