IFWXNetworkSocket::SetIpFilter method

Applies to: desktop apps only

The SetIpFilter method sets the IP filter for the socket. It sets a new IP filter if there was not one, or replaces the current IP filter with a new one.

Syntax

HRESULT SetIpFilter(
  [in]  IFWXIpFilter *pIpFilter
);

Parameters

  • pIpFilter [in]
    Pointer to the IFWXIpFilter interface. Setting this parameter equal to NULL will result in no IP address restrictions for this socket.

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

IFWXNetworkSocket

IFWXIpFilter

 

 

Build date: 7/12/2010