kaveAddMonitorPorts

Adds ports to the list of those that are monitored by Web Monitor and Mail Monitor.

You can specify closed ports in the list of the monitored ports.

This function is available in KAV SDK for Windows platforms.

Syntax

HRESULT kaveAddMonitorPorts (

const unsigned short *ports,

unsigned short portsCount);

Parameters

The kaveAddMonitorPorts function has the following parameters.

kaveAddMonitorPorts function parameters

Name

Type

Description

ports

In

Set of ports that must be added to the list of monitored ports.

The parameter is mandatory.

portsCount

In

Number of ports in the ports argument.

The parameter is mandatory.

Return value

The table below describes the possible return values of the kaveAddMonitorPorts function.

kaveAddMonitorPorts function return codes

Return code

Description

S_OK

The function succeeds.

E_INVALIDARG

Port 0 is specified in the ports argument, or NULL pointer is passed in the argument.

S_FALSE

Some ports are specified more than once in the ports argument or they are already present in the list of monitored ones. In this case all the ports that are specified in ports and have not been monitored will be added to the list of monitored ones.

E_FAIL

The function failed.

If logging is turned on, an error message is added to the log.

For information about other return values, see section "Return codes".

Page top