General procedure for scanning

The scanning procedure consists of the following successive steps:

  1. Loading—the application calls the kaveLoad function to load the KAV SDK into the system memory.

    This step is for Windows-based solutions only.

    For more details, see section "Loading".

  2. Initializing—the application calls the kaveInitializeEx or kaveInitialize function to initialize internal data, check license validity, indicate anti-virus database location and specify other data important for scan organizing.

    For more details, see section "Initializing".

  3. Using full Kaspersky SDK functionality:
    • Scanning—files and other objects are scanned by using scanning functions. If this is set in the scanning functions parameters, infected objects can be cured. The scanning functions can be called as many times as necessary.

      For more details, see section "Scanning".

    • Monitoring—there is an option to monitor email messages, web browsing activity and downloading of files from the web, and intercept file operations to protect end-user's computer from malware.

      For more information, see section "Monitoring functions" in the API Reference.

    • The SDK API library also provides a set of service functions to simplify interaction between the application and the KAV Engine.

      For more information, see section "Service functions" in the API Reference.

    Please note that all parameters exchanged between your application and KAV SDK library must be encoded in the current system encoding. For example, string data such as a path to template files for Web Monitor or a path to where malware definition database files are stored, must be in current system encoding.

  4. Obtaining and processing scan results—in case some of scanned objects are infected, more details can be accessed through scanning function return codes and by calling a special callback function. For more details, see section "Processing scan results".
  5. Uninitializing—the application calls the kaveUninitialize function to free resources and indicate that scanning is completed.

    For more details, see section "Uninitializing".

  6. Unloading—the application calls the kaveUnload function to unload the KAV SDK from the system memory.

    This step is for Windows-based solutions only.

    For more details, see section "Unloading".

Page top