INetFwPolicy

INetFwPolicy interface

[The Windows Firewall API is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. For Windows Vista and later, use of the Windows Firewall with Advanced Security API is recommended.]

The INetFwPolicy interface provides access to a firewall policy.

Members

The INetFwPolicy interface inherits from the IDispatch interface. INetFwPolicy also has these types of members:

Methods

The INetFwPolicy interface has these methods.

MethodDescription
get_CurrentProfile

Retrieves the current profile in effect.

GetProfileByType

Retrieves the profile currently in effect by type.

 

Properties

The INetFwPolicy interface has these properties.

PropertyDescription

CurrentProfile

Access to the type of firewall profile currently in effect.

 

Remarks

Instances of this interface are retrieved through the LocalPolicy property of the INetFwMgr interface.

All configuration changes take effect immediately.

The Windows Firewall/Internet Connection Sharing service must be running to access this interface.

Requirements

Minimum supported client

Windows Vista, Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 with SP1 [desktop apps only]

Header

Netfw.h

DLL

FirewallAPI.dll;
Hnetcfg.dll on Windows XP with SP2

See also

IDispatch
INetFwMgr
IUnknown
INetFwProfile

 

 

Show:
© 2016 Microsoft