INetFwPolicy interface (netfw.h)

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

Inheritance

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

Methods

The INetFwPolicy interface has these methods.

 
INetFwPolicy::get_CurrentProfile

Retrieves the current firewall profile.
INetFwPolicy::GetProfileByType

Retrieves the profile of the requested type.

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

Requirement Value
Minimum supported client Windows Vista, Windows XP with SP2 [desktop apps only]
Minimum supported server Windows Server 2003 with SP1 [desktop apps only]
Target Platform Windows
Header netfw.h

See also

IDispatch

INetFwMgr

INetFwProfile

IUnknown