Welcome to ISAserver.org

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Application filter help?

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [ISA Server 2004 Misc.] >> ISA Server 2004 Programming >> Application filter help? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Application filter help? - 16.Feb.2005 8:51:00 PM   
vt1317

 

Posts: 2
Joined: 16.Feb.2005
From: Chesapeake, Virginia USA
Status: offline
Hi Folks,

I'm trying to use the Data Monitor application filter as an example and write one from scratch that pretty much does the same thing just to try to get a handle on how everything fits together. I don't want the log file so I'm trying not to include that code.

I'm using Visual C++ .NET and starting with the Visual C++ ATL Project template from the New project dialog. I seem to be getting bogged down by the undocumented little things (CLSID definitions, .idl files, .def files, etc.). Is there a step-by-step description of how to set up the DLL code then integrate the Filter code other than the March '04 MSDN Magazine article? Can anyone point me in the right direction?

Thanks.
-Mark.
Post #: 1
RE: Application filter help? - 23.Feb.2005 7:57:00 PM   
vt1317

 

Posts: 2
Joined: 16.Feb.2005
From: Chesapeake, Virginia USA
Status: offline
OK, a follow-up to my own post.

I have a test application filter running fine but I've run into an odd problem with both my test and the Data Monitor example. Here's how I installed it:

>net stop fwsrv
The Microsoft Firewall service is stopping..
The Microsoft Firewall service was stopped successfully.

>regsvr32 /i test.dll

[pop-up window says regsvr32 install was successful]

>net start fwsrv
The Microsoft Firewall service is starting.....
The Microsoft Firewall service was started successfully.

[now I can see my test app filter in the list of add-ons and I can see that it is pumping data through]

>net stop fwsrv
The Microsoft Firewall service is stopping..
The Microsoft Firewall service was stopped successfully.

>regsvr32 /u test.dll

[pop-up window says regsvr32 un-install was successful]

>net start fwsrv
The Microsoft Firewall service is starting....................
The Microsoft Firewall service could not be started.

A service specific error occurred: 2147746132.

More help is available by typing NET HELPMSG 3547.

Upon this latest restart attempt (after the test app filter was supposed to be uninstalled) the ISA Server receives a "Component load failure" alert that says:

Cannot load an application filter Test ({GUID}). CoCreateInstance failed with code 0x80040154. To attempt to activate this application filter again, stop and restart the Firewall service.

If I re-install using regsrv32 /i test.dll then try to restart the firewall, it works.

This same exact behavior is seen when I try to use the provided Data Monitor example.

I've stepped through my Test dll's interaction with regsrv32 in debug and all methods return S_OK.

Has anybody seen anything similar? Is there a bug in the Data Monitor example?

Thanks.
-Mark.

(in reply to vt1317)
Post #: 2

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [ISA Server 2004 Misc.] >> ISA Server 2004 Programming >> Application filter help? Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts