EldoS | Feel safer!

Software components for data protection, secure storage and transfer

CallbackFilter AddFilterCallbackRule

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#9456
Posted: 03/30/2009 15:37:23
by Rodolfo Burlando (Basic support level)
Joined: 03/25/2009
Posts: 2

Hi,

there will be way to add multiple filters?

*. txt

then

*. jpg

eg

i use:

cbfFilter.AddFilterCallbackRule(cadenaFilfer,
fltReadCallback or
fltWriteCallback or
fltCreateCallback or
fltRenameCallback or
fltSetSizesCallback or
fltDeleteCallback or
fltSetBasicInfoCallback or
fltEnumerateDirectoryCallback or
fltOpenCallback or
fltCloseCallback
);
cbfFilter.AttachFilter(10000);

error is:

System Error. Code 183

Thank
#9463
Posted: 03/31/2009 01:30:37
by Vladimir Cherniga (EldoS Corp.)

Hi,
is this error from AddFilterCallbackRule or from AttachFilter ?
#9464
Posted: 03/31/2009 02:01:42
by Vladimir Cherniga (EldoS Corp.)

Quote
Rodolfo Burlando wrote:
there will be way to add multiple filters?


You could utilize BaseFilter sample, it allows to add/delete any kind of rules from gui.
#9466
Posted: 03/31/2009 03:09:46
by Daniel Öberg (Standard support level)
Joined: 02/26/2009
Posts: 18

You only need to attach the filter once.
cbfFilter.AttachFilter(10000);

Then you can add different rules after each other
cbfFilter.AddFilterCallbackRule

like c:\*.txt

Attaching filter after the rules works as well.

Reply

Statistics

Topic viewed 3407 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!