TriggerInfectionScanProductInstalledBinaries
Will scan given product's components and binary files
Syntax
Method ID
#define WAAPI_MID_TRIGGER_INFECTION_SCAN_PRODUCT_INSTALLED_BINARIES 80002
JSON Input Structure
{
"input": {
"method": 80002,
"signature": number,
"scan_level": string,
"force_rescan": boolean,
"no_file_upload": boolean,
"no_sample_sharing": boolean,
"no_hash_lookup": boolean
}
}
Input Properties
| Parameter | Type | Description |
|---|---|---|
scan_level | string | (optional) Indicates whether function should scan the all the binary files (exe and dll) under the given product's install directory by using value 'deep' or only the product's components by using value 'quick'. The default scan_level value is 'quick' |
force_rescan | boolean | (optional) If true, will do a force rescan even we have cached result. |
no_file_upload | boolean | (optional) If true, the scanned file will only be scanned using the hash lookup, and will not be uploaded to Metadefender or target Metadefender server for scanning. Default value is 'false' |
no_sample_sharing | boolean | (optional) If no_file_upload is set to true, then this value is ignored. Otherwise, if this value is set to true - the file will be saved on Metadefender Server, with intention of sharing samples with antimalware vendors for research. Default value is 'false' |
no_hash_lookup | boolean | (optional) If true, file will not be scanned at all and will not be uploaded to Metadefender or target Metadefender server for scanning. If true, 'no_file_upload' is not used anymore. Default value is 'false' |
JSON Output Structure
{
"result": {
"method": 80002,
"code": number,
"timing": number,
"timestamp": string,
"infection_scan_id": string
}
}
Output Properties
| Property | Type | Description |
|---|---|---|
result.method | number | The method ID that generated this result. |
result.code | number | The result code. See Result Codes. |
result.timing | number | The measured time for the method call in milliseconds. |
result.timestamp | string | The timestamp in seconds of when the call was made. |
result.infection_scan_id | string | A session id key representing the created scanning session |
Result Codes
| Code | Name | Description |
|---|---|---|
| 0 | WAAPI_OK | The operation completed successfully. |
note
Other codes may be returned. See the full Result Codes reference for the complete list.
Remarks
Error Handling
The results of this function are determined by the error code returned by the call. If successful, WAAPI_OK or a special success code will be returned. Always check both the function return value and the result.code field in the output JSON.
Examples
Examples will be added here demonstrating the usage of this method.
See Also
Last updated: 2026-10-01