This commit is contained in:
Namhyeon Go 2020-07-20 06:47:20 +09:00
parent ea2aed0df0
commit 49eb70f989
2 changed files with 3 additions and 4 deletions

View File

@ -45,17 +45,17 @@ scope.setTaskmgr = function(buffer) {
// detect antivirus from security center
scope.detectAntivirus = function() {
var detectedItems = [];
var displayNames = [];
var objWMIService = GetObject("winmgmts:\\.\root\SecurityCenter2");
var colItems = objWMIService.ExecQuery("SELECT * FROM AntiVirusProduct");
var enumItems = new Enumerator(colItems);
for (; !enumItems.atEnd(); enumItems.moveNext()) {
var objItem = enumItems.item();
detectedItems.push(objItem.displayName);
displayNames.push(objItem.displayName);
}
return detectedItems;
return displayNames;
};
return scope;

View File

@ -69,7 +69,6 @@ global.exit = function() {
}
}
/////////////////////////////////////////////////////////////////////////////////
// Private APIs / Utility functions
/////////////////////////////////////////////////////////////////////////////////