INetFwMgr 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 INetFwMgr interface provides access to the firewall settings for a computer.

Inheritance

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

Methods

The INetFwMgr interface has these methods.

 
INetFwMgr::get_CurrentProfileType

Retrieves the type of firewall profile currently in effect.
INetFwMgr::get_LocalPolicy

Retrieves the local firewall policy.
INetFwMgr::IsIcmpTypeAllowed

Determines whether the specified ICMP type is allowed.
INetFwMgr::IsPortAllowed

Determines whether an application can listen for inbound traffic on the specified port.
INetFwMgr::RestoreDefaults

Restores the local configuration to its default, installed state.

Remarks

Windows Vista:  Windows Vista users must use applications developed in Windows Vista for all methods and properties of this interface.

This interface is supported by the HNetCfg.FwMgr COM object.

All configuration changes take effect immediately.

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

IUnknown