The AttachDataFilter method attaches a data filter to the connection.
HRESULT AttachDataFilter( [in] IFWXDataFilter* piDataFilter, [in] FwxDataFilterPriorityClass PriorityClass, [in] IUnknown* punkFilterContext );
Pointer to the IFWXDataFilter interface on the instance of the filter's data filter object to use with the connection.
Priority class for the data filter. This determines the position of the data filter in relation to other data filters that may be attached to the connection. This parameter is a value from the FwxDataFilterPriorityClass enumeration.
Pointer to the interface to use to pass context information to the data filter, such as the session to which the data filter is being attached. This interface is passed to the IFWXDataFilter::SetSockets method in the punkFilterContext parameter. This parameter can be NULL.
The method succeeded.
Not enough memory or resources could be allocated to complete the operation.
The object is shutting down.
An invalid value was passed to the method.
A filter calls this method after it creates an instance of its data filter object.
This method can be called only in the context of the IFWXSessionFilter::FirewallEventHandler method while handling events of types:
fwx_AcceptedConnection
fwx_Bind_Udp
fwx_Connect_Tcp
fwx_Udp_Destination
Server | Requires Windows Server 2008. |
---|---|
Version | Requires Forefront Threat Management Gateway (TMG). |
Header |
Declared in Wspfwext.idl. |
DLL |
Requires Wspsrv.exe. |
IFWXConnection
IFWXDataFilter
IFWXSessionFilter::FirewallEventHandler
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.