Rules Property

INetFwPolicy2::Rules property

Retrieves the collection of firewall rules.

This property is read-only.

Syntax


HRESULT get_Rules(
  [out] INetFwRules **rules,
  [out] INetFwRules rules
);

Property value

The collection of firewall rules.

Error codes

If the method succeeds, the return value is S_OK.

If the method fails, the return value is one of the following error codes.

NameMeaning
E_POINTER

The method failed due to an invalid pointer.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Netfw.h

DLL

FirewallAPI.dll

See also

INetFwPolicy2
INetFwRules

 

 

Show:
© 2016 Microsoft