IFWXFilter Interface
The IFWXFilter interface is used by the Microsoft Firewall service to load and initialize a filter and to create session filters. When the Firewall service starts, it creates an instance of the COM object that implements the IFWXFilter interface in each application filter that is installed on the Forefront TMG computer and enabled, and then the Firewall service calls the FilterInit method for each application filter to initialize it.
For more information about how this interface is used in application filters, see Filter Object Model.
For more information about implementing the IFWXFilter interface, see Implementing a Filter Object.
Syntax
interface IFWXFilter : IUnknown
When To Implement
Every application filter must implement this interface on a COM object called the filter object.
Methods
The IFWXFilter interface inherits the methods of the IUnknown interface.
In addition, IFWXFilter defines the following methods.
Method | Description |
---|---|
Initializes the filter, passes a pointer to the IFWXFirewall interface exposed by the Microsoft Firewall service to the filter, and populates an FwxFilterHookEvents structure created by the Firewall service with the initial set of events for which the filter should be notified. |
|
Begins the shutdown sequence for the filter object when the Firewall service is shutting down. |
|
Creates an instance of the session filter object, returns a pointer to the IFWXSessionFilter interface on the object created, and populates an FwxFilterHookEvents structure created by the Firewall service with the set of events that the session filter will handle. |
Remarks
Only one instance of the IFWXFilter interface is created for each application filter. In the IFWXFilter interface, you define a port, or range of ports, to be monitored, and the events that will trigger a call to the IFWXFilter::AttachToSession method.
Requirements
Server | Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2. |
Version | Requires Forefront Threat Management Gateway (TMG) 2010. |
Header | Declared in Wspfwext.idl. |
See Also
Send comments about this topic to Microsoft
Build date: 6/30/2010