INetFwServiceRestriction interface (netfw.h)
The INetFwServiceRestriction interface provides access to the Windows Service Hardening networking rules.
The INetFwServiceRestriction interface inherits from the IDispatch interface. INetFwServiceRestriction also has these types of members:
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. |
When adding rules, note that there may be a small time lag before the newly-added rule is applied.
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 |