INetFwServiceRestriction interface (netfw.h)
The INetFwServiceRestriction interface provides access to the Windows Service Hardening networking rules.
Inheritance
The INetFwServiceRestriction interface inherits from the IDispatch interface. INetFwServiceRestriction also has these types of members:
Methods
The INetFwServiceRestriction interface has these methods.
INetFwServiceRestriction::get_Rules Retrieves the collection of Windows Service Hardening networking rules. |
INetFwServiceRestriction::RestrictService The RestrictService method turns service restriction on or off for a given service. |
INetFwServiceRestriction::ServiceRestricted The ServiceRestricted method indicates whether service restriction rules are enabled to limit traffic to the resources specified by the firewall rules. |
Remarks
When adding rules, note that there may be a small time lag before the newly-added rule is applied.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | netfw.h |