ReloadDatabase
|
API |
ReloadDatabase |
|
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 return "Not Scanned." If there is no specific step required for reloading the database, it still returns "0" to indicate that the engine is ready. |
Function prototype
int ReloadDatabase( const wchar_t * srcDir, void ** reserved)Arguments
|
Argument |
Description |
|
srcDir |
If specified, path to the folder where new definition files are placed. |
|
reserved |
Reserved for future use. |
Important: If srcDir is used, the folder and its contents must be consumed and deleted by engine.
Return value
|
Value |
Description |
|
0 |
Database is successfully reloaded or nothing needs to be done to reload the database. |
|
1 |
Failed to reload database (same result as fail to init). |