IsLocalAddress Method of the IFWXNetworkElement Interface

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

Syntax

HRESULT IsLocalAddress(
  [in]  LPSOCKADDR Address,
  [in]  DWORD AddressLength
);

Parameters

Address

Pointer to a sockaddr structure that contains the IP address to be checked.

AddressLength

Length, in bytes, of the structure pointed to by the Address parameter.

Return Value

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 2008.
Version Requires Forefront Threat Management Gateway (TMG).
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXNetworkElement


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.