EldoS | Feel safer!

Software components for data protection, secure storage and transfer

CallbackFilter: how to use demo

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
Posted: 04/04/2008 21:32:54
by Ray Mond Yeoh (Basic support level)
Joined: 04/04/2008
Posts: 7

I ran the BaseFilter application in this order:

- clicked on Install Driver - app reports driver installed fine
- entered *.sqz in Mask entry, selected WriteCallback, clicked 'Accept rule' - nothing happens, no rules added in the 'Active Filter Rules List' area.

Changed the code to report the status of the AddFilterCallbackRule method, it returns false indicating that the rule could not be applied.

If after installing the driver, I click Attach Filter, then click 'Accept rule', I receive an access violation error, but apparently the AddFilterCallbackRule method succeeded. That sequence can't be right either, as the help file indicates that rules need to be added first before the filters are attached.

Posted: 04/07/2008 05:08:46
by Vladimir Cherniga (Team)

Please specify which specific sample did you try ? The AddFilterCallbackRule method must accept rule before attaching the filter and after this.
Posted: 04/07/2008 05:17:53
by Ray Mond Yeoh (Basic support level)
Joined: 04/04/2008
Posts: 7

I was running the Delphi sample, using Delphi 7 on Windows XP SP2.

When I click 'Accept rule', the function returns false. Is there a way to find out why the rule was rejected?

Posted: 04/07/2008 10:09:34
by Vladimir Cherniga (Team)

Try to click 'Accept rule' after attaching the filter. We will fix it soon.
Also rewrite the handler for "Remove Selected" button to the next code

procedure TCBFilterForm.btnRemoveClick(Sender: TObject);
Index: Integer;
for Index := 0 to lstRules.Items.Count - 1 do
if lstRules.Items[Index].Checked then
FCbFlt.DeleteFilterRule(lstRules.Items[Index].Caption, fltClearAccessFlags,
On E: Exception do
MessageDlg(E.Message, mtError, [mbOk], 0);
Posted: 04/08/2008 06:05:12
by Ray Mond Yeoh (Basic support level)
Joined: 04/04/2008
Posts: 7

If I click 'Add rule' after attaching the filter, I receive an access violation error. I'll just wait for the next beta, thanks.
Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages



Topic viewed 14704 times

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


Back to top

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

Got it!