Click to return to the Security     
IOfficeAntiVirus Interfac...     Antivirus Structures     Antivirus Interfaces    
Web Workshop  |  Security & Cryptography

IOfficeAntiVirus::Scan Method


Activates an antivirus scanner.

Syntax

HRESULT Scan (
    MSOAVINFO *pmsoavinfo
);

Parameters

pmsoavinfo
Address of an MSOAVINFO structure that contains information about the file to be scanned.

Return Value

Returns one of the following values:

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 but the virus could not be cleaned from the file.
ERROR_FILE_NOT_FOUND The file was not found.


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.