INetFwRule::get_Protocol method (netfw.h)
Specifies the IP protocol of this rule.
This property is read/write.
Syntax
HRESULT get_Protocol(
LONG *protocol
);
Parameters
protocol
Return value
None
Remarks
This property is optional.
Also see the restrictions on changing properties described in the Remarks section of the INetFwRule interface page.
The Protocol property must be set before the LocalPorts or RemotePorts properties or an error will be returned.
A list of protocol numbers is available at the IANA website.
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 |
DLL | FirewallAPI.dll |