INetFwRule::get_Protocol method

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

   
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

See also

INetFwRule