使用 WMI 在 Windows 上检测防病毒软件 - 哪个命名空间?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7710027/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Detecting anti-virus on Windows with WMI - which namespace?
提问by dijjay
I am coding a antivirus detection code and the WMI namespace differs in some cases as Win7 supports "\root\SecurityCenter2" and WinXP uses "\root\SecurityCenter".
我正在编写防病毒检测代码,WMI 命名空间在某些情况下有所不同,因为 Win7 支持“\root\SecurityCenter2”,而 WinXP 使用“\root\SecurityCenter”。
Does anyone have a definitive list of namespaces Windows uses for anti-virus registration?
有没有人有 Windows 用于防病毒注册的命名空间的明确列表?
Thanks in advance..
提前致谢..
回答by RRUZ
The class (AntiVirusProduct) which return information about the installed antivirus is not documented by Microsoft and only is supported in Windows Desktops editions (Windows XP, Windows Vista and Windows 7). Also depending of the Windows version the properties retrieved by the the this class can change.
Microsoft 未记录返回有关已安装防病毒软件的信息的类 (AntiVirusProduct),仅在 Windows 桌面版本(Windows XP、Windows Vista 和 Windows 7)中受支持。此外,根据 Windows 版本,此类检索的属性可以更改。
Windows XP
视窗 XP
Namespace : SecurityCenter
AntiVirusProduct-Properties
companyName
displayName
enableOnAccessUIMd5Hash
enableOnAccessUIParameters
instanceGuid
onAccessScanningEnabled
pathToEnableOnAccessUI
pathToUpdateUI
productUptoDate
updateUIMd5Hash
updateUIParameters
versionNumber
Windows Vista and Windows 7
Windows Vista 和 Windows 7
Namespace : SecurityCenter2
displayName
instanceGuid
pathToSignedProductExe
pathToSignedReportingExe
productState
For more info you can read my article in this location Getting the installed Antivirus, AntiSpyware and Firewall software using Delphi and the WMI
.
有关更多信息,您可以在此位置阅读我的文章Getting the installed Antivirus, AntiSpyware and Firewall software using Delphi and the WMI
。