IOfficeAntiVirus::Scan Method

Last modified: July 13, 2010

Applies to: Office 2007 | Office 2010

Activates an antivirus scanner.

HRESULT Scan(
    MSOAVINFO *pmsoavinfo
);

pmsoavinfo

An MSOAVINFO structure that contains information about the file to scan.

Returns one of the values listed in the following table.

Value

Description

S_OK

The file was scanned and no viruses were found.

S_FALSE

The file was infected and the virus was cleaned from the file.

E_FAIL

The file was infected. However, the virus could not be cleaned from the file.

ERROR_FILE_NOT_FOUND

The file was not found. You must embed ERROR_FILE_NOT_FOUND in an HRESULT before you return it. Use the standard HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) macro.

Show:
© 2014 Microsoft