INetFwRule::get_ServiceName method (netfw.h)

Specifies the service name property of the application.

This property is read/write.

Syntax

HRESULT get_ServiceName(
  BSTR *serviceName
);

Parameters

serviceName

Return value

None

Remarks

This property is optional. A serviceName value of "*" indicates that a service, not an application, must be sending or receiving traffic.

Also see the restrictions on changing properties described in the Remarks section of the INetFwRule interface page.

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

See also

INetFwRule