Microsoft Internet Security and Acceleration Server 2004 SDK

IFWXNetConfigDetectionSnapshot::LookupNetworkElementByAddress

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

HRESULT LookupNetworkElementByAddress(
  LPSOCKADDR Address,
  DWORD AddressLength,
  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 ISA Server network to which the address belongs.

Return Values

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

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Wspfwext.idl.

See Also

IFWXNetConfigDetectionSnapshot