GetConnectionFlags Method of the IFWXConnection Interface

The GetConnectionFlags method retrieves the flags that are set for the connection.

Syntax

HRESULT GetConnectionFlags(
  [out]  LPDWORD pOutputFlags
);

Parameters

pOutputFlags

Pointer to a variable that on return is set to the following flag if it is set for the connection, or to 0.

Value Meaning

FWX_CONNECTION_INTERNAL_ADDRESS_TRANSLATION

External source IP addresses are translated to an internal IP address on the Forefront TMG computer if there is a NAT network relationship between the source and destination networks.

Return Value

This method returns S_OK if the call is successful; otherwise, it returns an error code.

Remarks

When a server publishing rule is configured to use the primary IP address of the Forefront TMG computer's network adapter in the network where the server published by the rule resides as the source IP address in requests forwarded to the published server, the FWX_CONNECTION_INTERNAL_ADDRESS_TRANSLATION flag is set for the connection object of each primary connection, and full proxy mode is enabled. When this flag is set for the connection object of a primary connection, the application filter should set the FWX_FLAG_PROXY_MODE flag in a call to BindForClient and thereby enable full proxy mode for secondary connections.

Requirements

Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXConnection


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.