antivirus.js

来自「javascript source code part2」· JavaScript 代码 · 共 24 行

JS
24
字号
/*
   antivirus.js
   - determine whether the latest antivirus software is installed
   - assumes existence of following regkey:
    HKCU\Software\AntiVirusVendor\LatestUpdate
*/

var iVirusRet;

function CheckAntiVirusStatus()
{
   var iInstVer = objShell.RegRead
                  ("HKCU\\Software\\AntiVirusVendor\\LatestUpdate");

   if (iCurrVer > iInstVer)
   {
      iVirusRet = objShell.Popup (getResource("resUpgrade"), // window msg   
                  0,                                         // no auto-hide
                  "Antivirus upgrade required",              // window title
                  48 + 4);                                   // window styles 
                                                      // exclamation + yes/no 
   }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?