Scan file (deprecated)
Method |
Scan |
Description |
This method is called to scan a file or a memory buffer. This is done in a synchronous (blocking) fashion - the method returns only after the scan is complete. |
Note |
deprecated |
Note: This is a deprecated method and we suggest using ScanEx instead.
Function prototype
HRESULT
Scan
(
[in] VARIANT FileNameOrBuffer,
[out] VARIANT* ThreatList,
[out, retval] VARIANT* ScanOutcome
)
Arguments
Argument |
Description |
Data Type |
FileNameOrBuffer |
If FileNameOrBuffer is of type string, then it is treated as a file or directory name to scan. Otherwise, if it is a byte array (Byte []), it is treated as a memory buffer that should be scanned. |
File name: string Buffer: byte array |
ThreatList |
A threat list found on the scanned object, otherwise null. |
array of strings |
ScanOutCome |
The scan result. |
UINT32 |