Callback For Update Completion (COM)

Method

MyOnUpdateComplete

Description

This callback method is invoked when an update completes. It is fired to all Metadefender Core client objects that are registered to this connection point. However, if there is already an update request that has not completed, only the Metadefender Core client that requested the update will get a callback with the update result of “updateAlreadyRequested(2)”.

Note

Connection Points

Function prototype

void MyOnUpdateComplete
(
VARIANT updateResult,
VARIANT updateReport
)

Arguments

Argument

Description

Data Type

updateResult

A UINT32 value which contains the update result:

  • 0: updateFinished

  • 1: updateFailed

  • 2: updateAlreadyRequested

  • 3: updateUnknown

UINT32

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*

string

* 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.