Callback For Update Progress Report (COM)

Method

MyOnUpdateProgressReport

Description

This callback method is invoked when an update for each engine completes. It is fired to the Metadefender Core client object that initiates the update.

Note

Connection Points

Function prototype

void MyOnUpdateProgressReport
(
VARIANT productName,
VARIANT updateState,
VARIANT updateReport,
VARIANT productNum,
VARIANT totalNumberOfProducts,
VARIANT startTime,
VARIANT elapsedMiliSec,
VARIANT reserved
)

Arguments

Argument

Description

Data Type

productName

The description of the product.

 

updateState

The progress in percentage for update with the specified engine (0 indicates update started while 100 indicates update complete).

 

updateReport

XML-formatted string consisting of engine names and engine update results. Engine update result is one of the following:

  • updateOk

  • updateUpToDate

  • updateFailed

  • updateUnknown

  • updateNetworkProblem

  • updateTimeOut

  • updateNotImplemented

  • updateNotSupported

  • updateAlreadyInProgress*

* updateAlreadyInProgress - If any update on the antivirus product is already running, no additional updates will be queued. This means that the update that has previously been started will return the UpdateResult through the connection point after completion.

string

productNum

The order of update among the current AVs.

 

totalNumberOfProducts

The number of products scanned is requested for this ticket.

 

startTime

Time when update for the engine is initiated.

 

elapsedMiliSec

Time elapsed for update complete in milliseconds.

 

reserved

Reserved