Share via


IFWXNetConfigDetectionSnapshot::LookupNetworkElementByAddress method

Applies to: desktop apps only

The LookupNetworkElementByAddress method retrieves an IFWXNetworkElement interface that represents the Forefront TMG network to which the specified IP address belongs.

Syntax

HRESULT LookupNetworkElementByAddress(
  [in]   LPSOCKADDR Address,
  [in]   DWORD AddressLength,
  [out]  IFWXNetworkElement **ppNetworkElement
);

Parameters

  • Address [in]
    Pointer to a sockaddr structure that contains the IP address to look up.

  • AddressLength [in]
    Length, in bytes, of the structure pointed to by the Address parameter.

  • ppNetworkElement [out]
    Address of an interface pointer that on return points to an IFWXNetworkElement interface that represents the Forefront TMG network to which the address belongs.

Return value

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

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

Header

Wspfwext.idl

DLL

Wspsrv.exe

See also

IFWXNetConfigDetectionSnapshot

 

 

Build date: 7/12/2010