The EmulateForConnect method emulates a connection for an outbound request. In the outbound scenario, a data filter emulates the external connection for an internal client.
HRESULT EmulateForConnect( [in] IFWXDataFilter* piDataFilter, [in] IUnknown* punkFilterContext );
Pointer to the IFWXDataFilter interface of the Microsoft Firewall service data filter object to use with this connection.
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.
Invalid value was passed to the method.
The connection is already being emulated (the same connection cannot be emulated twice).
This method is only valid in the context of certain events. It cannot be used at other times.
Server | Requires Windows Server 2008. |
---|---|
Version | Requires Forefront Threat Management Gateway (TMG). |
Header |
Declared in Wspfwext.idl. |
DLL |
Requires Wspsrv.exe. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.