NReloadDatabase

API

NReloadDatabase

Function

This method provides a way for Metadefender Core to explicitly reload the definition database of the engine, especially for a malware engine. During this call, any requests to scan should return ‘Not Scanned.’ If there is no specific step required for reloading the database, it should still return "0" to indicate that the engine is ready.

Function prototype

int ReloadDatabase
(
ref string srcDir,
)

Arguments

Argument

Description

srcDir

If specified, path to the folder where new definition files are placed.

Return value

Value

Description

0

Database is successfully reloaded or nothing needs to be done to reload database.

1

Fail to reload database (same result as fail to init).