kaveRemoveMonitorPorts

Removes some ports from the list of those that are monitored by Web Monitor and Mail Monitor.

This function is available in KAV SDK for Windows platforms.

Syntax

HRESULT kaveRemoveMonitorPorts (

const unsigned short *ports,

unsigned short portsCount);

Parameters

The kaveRemoveMonitorPorts function has the following parameters.

kaveRemoveMonitorPorts function parameters

Name

Type

Description

ports

In

Set of ports that must be removed from 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 kaveRemoveMonitorPorts function.

kaveRemoveMonitorPorts 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 absent from the list of monitored ones. In this case all the ports that are specified in ports and have been monitored will be removed from 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