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

Members

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

Methods

The INetFwMgr interface has these methods.

MethodDescription
get_CurrentProfileType

Retrieves the type of firewall profile currently in effect.

get_LocalPolicy

Retrieves the local firewall policy.

IsIcmpTypeAllowed

Determines whether the specified ICMP type is allowed.

IsPortAllowed

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

RestoreDefaults

Restores the local configuration to its default state.

 

Properties

The INetFwMgr interface has these properties.

PropertyDescription

CurrentProfileType

Access to the type of firewall profile currently in effect.

LocalPolicy

Access to the local firewall policy.

 

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

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
IUnknown

 

 

Community Additions

ADD
Show:
© 2014 Microsoft