Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 787767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:15:26+00:00 2026-05-14T21:15:26+00:00

I would like to be be able to invoke a virus check as the

  • 0

I would like to be be able to invoke a virus check as the final stage of the build process (please don’t question why a dev machine would get a virus, it’s just a belt-and-braces approach to avoid the risk of getting sued by customers…). Also I’d like the option of having AV on a machine but switching the auto file system protection off (at least for the build directories).

What I would like is a generic way of scanning a file using whatever AV system is in place. I’m assuming that there’s an Windows API to do this, given that Windows detects the presence of an AV system, and browsers such as Firefox invoke a virus scan whenever a file is downloaded. So what’s the API that they’re using? There’s the Microsoft AntiVirus API but that seems to be specific to Office documents. Does the approach involve using WMI? (and if you can detect the AV provider from there, how do you then invoke it to scan a file?)

I know that I could write the script to manually call the AV scanner that I know to be installed, but as an intellectual exercise I’m more interested to know how apps like Firefox are doing this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:15:27+00:00Added an answer on May 14, 2026 at 9:15 pm

    Well, you may want to take a look at the nsDownloadScanner system directly on the Firefox source code:

    • nsDownloadScanner.h
    • nsDownloadScanner.cpp

    As told by the comments on that files:

    Download scanner attempts to make use of one of two different
    virus scanning interfaces available on Windows - IOfficeAntiVirus
    (Windows 95/NT 4 and IE 5) and IAttachmentExecute (XPSP2 and up).
    The latter interface supports calling IOfficeAntiVirus internally,
    while also adding support for XPSP2+ ADS forks which define security
    related prompting on downloaded content.
    

    Documentations on those interfaces can be found here:

    • IAttachmentExecute
    • IOfficeAntiVirus

    If your software is open-source is compliant with the MPL licence (thanks, @MSalters), you may also directly use Firefox’ code, to avoid reinventing the wheel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a asp.net web site, I would like a page on that site
I have a list of Hyperlinks in an ItemsControl and I would like the
I have a generic abstract base class from which I would like to derive
Okay the question title may not have made sense... mostly because I don't know
Am trying to invoke a public web-service using a java client but am getting
I have an application which is invoked via Java Webstart. Opening it via the
I've been given a 2D matrix representing temperature points on the surface of a
Using SubSonic3, I have this generic method (thanks to linq guy, James Curran): public
in my project, I let users pick pictures using the FileReference class. I then
Our system communicates with several web services providers. They are all invoked from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.