Microsoft Internet Security and Acceleration Server 2004 SDK

IFWXNetworkElement::IsLocalAddress

The IsLocalAddress method verifies whether the specified IP address is contained in the network element and is an IP address of the local computer.

HRESULT IsLocalAddress(
  LPSOCKADDR Address,
  DWORD AddressLength
);

Parameters

Address
[in] Pointer to a sockaddr structure that contains the IP address to be checked.
AddressLength
[in] Length, in bytes, of the structure pointed to by the Address parameter.

Return Values

This method can return one of the following:
S_OK
The method succeeded, and the specified IP address is contained in the network element and is an IP address of the local computer.
S_FALSE
The method succeeded, but the specified IP address is not contained in the network element or is not an IP address of the local computer.
E_INVALIDARG
The address passed to the method is not a valid IP address.

Requirements

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

See Also

IFWXNetworkElement