EldoS | Feel safer!

Software components for data protection, secure storage and transfer

CallbackFilter: how to use demo

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#5740
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.

Thanks.
#5748
Posted: 04/07/2008 05:08:46
by Vladimir Cherniga (EldoS Corp.)

Please specify which specific sample did you try ? The AddFilterCallbackRule method must accept rule before attaching the filter and after this.
#5749
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?

Thanks.
#5756
Posted: 04/07/2008 10:09:34
by Vladimir Cherniga (EldoS Corp.)

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);
var
Index: Integer;
begin
try
for Index := 0 to lstRules.Items.Count - 1 do
begin
if lstRules.Items[Index].Checked then
FCbFlt.DeleteFilterRule(lstRules.Items[Index].Caption, fltClearAccessFlags,
fltClearCallbackFlags);
end;
UpdateFilterList();
except
On E: Exception do
MessageDlg(E.Message, mtError, [mbOk], 0);
end;
end;
#5766
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

Reply

Statistics

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