IFWXNetworkElement::IsLocalAddress method

Applies to: desktop apps only

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 [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 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

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

IFWXNetworkElement

 

 

Build date: 7/12/2010