Scan and clean file (deprecated)

Method

ScanAndClean

Description

This method is called to scan and clean a file. 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 ScanAndClean
(
[in] VARIANT FileName,
[out] VARIANT* ThreatList,
[out, retval] VARIANT* ScanOutcome
)

Arguments

Argument

Description

Data Type

FileName

If FileNameOrBuffer is of type string then it is treated as a file / 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