使用WMI在Windows上检测防病毒 - 哪个命名空间?

dij*_*jay 4 windows wmi antivirus antivirus-integration

我编写的是防病毒检测代码,WMI名称空间在某些情况下有所不同,因为Win7支持"\ root\SecurityCenter2",WinXP使用"\ root\SecurityCenter".

有没有人有Windows用于反病毒注册的命名空间列表?

提前致谢..

RRU*_*RUZ 5

返回有关已安装的防病毒软件的类(AntiVirusProduct)未由Microsoft记录,仅在Windows桌面版本(Windows XP,Windows Vista和Windows 7)中受支持.此外,根据Windows版本,此类检索的属性可能会更改.

Windows XP

Namespace : SecurityCenter

AntiVirusProduct-Properties

companyName
displayName
enableOnAccessUIMd5Hash
enableOnAccessUIParameters
instanceGuid
onAccessScanningEnabled
pathToEnableOnAccessUI
pathToUpdateUI
productUptoDate
updateUIMd5Hash
updateUIParameters
versionNumber
Run Code Online (Sandbox Code Playgroud)

Windows Vista和Windows 7

Namespace : SecurityCenter2

displayName
instanceGuid
pathToSignedProductExe
pathToSignedReportingExe
productState
Run Code Online (Sandbox Code Playgroud)

有关详细信息,您可以在此位置阅读我的文章Getting the installed Antivirus, AntiSpyware and Firewall software using Delphi and the WMI.