SetIpFilter Method of the IFWXNetworkSocket Interface

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

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

Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXNetworkSocket
IFWXIpFilter


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.