Windows Defender Antivirus scan from C# [AccessViolation exception]

前端 未结 3 763
梦毁少年i
梦毁少年i 2020-12-24 02:45

We are writing a code to do on-demand scan of a file from C# using Windows Defender APIs.

        [DllImport(@\"C:\\Program Files\\Windows Defender\\MpClient         


        
3条回答
  •  天涯浪人
    2020-12-24 03:21

    You may use Antimalware Scan Interface to check file for malware.

    The Antimalware Scan Interface (AMSI) is a generic interface standard that allows applications and services to integrate with any antimalware product present on a machine. It provides enhanced malware protection for users and their data, applications, and workloads.

    It's available starting from Windows 10.

提交回复
热议问题