< !--{ Active Shield Load On Start Frame --> < !--} End Active Shield Load On Start Frame --> '// If this is a reinstall or if the group download does not match then we need to restart the group!! Exit Function 'TODO: show error message If Err.Number < > nLastError Then REPORT_CLEAN_MULTI_FILE_REBOOT = VARIABLE_REBOOT_COUNT & call HandleDownloadEvent( GDR_ERROR ) call HandleDownloadEvent( GDR_INET_ERROR ) call HandleDownloadEvent( GDR_RESOURCE_ERROR ) nLastError = Err.Number on error resume next bReStart = TRUE ' this is schedular scan, enable all the available options '// If the group was found start the download. '// Start the download operation. < !--{ start body --> If Not bReStart Then On Error Resume Next On Error Resume Next ' This is local for this function. On error resume next if ASYNC_FIRST_ITEM = bStart then on error resume next < table width=* valign=top border=0> < !-- { Scan Start Page --> < /table> < !-- } Scan Start Page --> If Err.Number < > nLastError Then nLastError = Err.Number If Err.Number < > nLastError Then On Error Resume Next nLastError = Err.Number '// Start the Help. If bEnable Then On Error Resume Next On Error Resume Next ' This is local for this function. bReStart = FALSE on error resume next ' as idVirusList could be hidden window.onError = GetRef( WindowScriptError ) '// Program Error strings '// Scan Error Codes 'Clean/Delete Error codes 'Error Messages - unable to initialize heap - unable to open console device Const REPORT_CLEAN_SINGLE_FILE_REBOOT = 1 Const AVD_ERROR = 5 Const CLEANED_REBOOT_STR = You Const CLEAN_REBOOT_STR = You Const COMPLETE_CLEAN_STR = Restart Const COMPLETE_DELETE_STR = Restart Const DBGERR_ONDOWNLOADSTART = 200 Const ERROR_DELETE_STR = An Const ERR_IMG_DOWNLOAD_TECH_DIFF = An Const ERR_READ_MSG = An Const ERR_UNKNOWN = An Const GDR_DWNLD_ERROR = 7305 Const GDR_ERROR = 7301 Const GDR_INET_ERROR = 7316 Const GDR_INIT_ERROR = 7308 Const GDR_MEMORYERROR = 7302 Const GDR_RESOURCE_ERROR = 7303 Const MCINST_404_ERROR = 15 ' // Object was not found on server. Const MCINST_ERROR = 2 ' // Internal Error Const MCINST_INET_ERROR = 6 ' // wininet error Const MCINST_SERVER_ERROR = 9 ' // Could not connect to server Const MCINST_SYS_ERROR = 3 ' // System Error Const MCVSPROP_ENCRYPTION_ERROR = 2 Const MCVSPROP_ERROR = 1 Const MCVSPROP_FAILED_TO_OPEN_NOTIFICATION_EVENT_ERROR = 15 '// Failed to open the event object set by other component Const MCVSPROP_NOTIFICATION_ERROR = 16 '// Failed to notify components about changes Const MCVSPROP_STORAGE_CREATE_FAILURE = 9 '// Error while opening the property storage Const MCVSPROP_STORAGE_OPEN_FAILURE = 10 '// Error while opening the property storage Const MCVSPROP_STORAGE_READ_FAILURE = 11 '// Error reading from the property storage Const MCVSPROP_STORAGE_WRITE_FAILURE = 12 '// An error occurred while writing to the storage Const MCVSPROP_SYS_ERROR = 20 '// A system error occurred Const MCVSPROP_TAMPERED_DATA_ERROR = 5 Const MCVS_CLEAN_NEEDREBOOT_STR = Restart Const MCVS_DELETE_NEEDREBOOT_STR = Restart Const MCVS_ESCNRESULT_ERROR_CREATING_INFECTED_ITEM = 117 ' An error occurred while creating infected email info item Const MCVS_ESCNRESULT_ERROR_DISPLAYING_SLIDEIN_ALERT= 118 ' An error occurred while trying to display the slide in alert window Const MCVS_ESCNRESULT_ERROR_PARSING_BODY_PART = 109 ' an error occured while parsing a body part Const MCVS_ESCNRESULT_ERROR_PARSING_EMAIL_BODY = 107 ' an error occured while parsing the email header Const MCVS_ESCNRESULT_ERROR_PARSING_EMAIL_HEADER = 106 ' an error occured while parsing the email header Const MCVS_ESCNRESULT_ERROR_PARSING_PART_BOUNDARY = 110 ' an error occured while parsing the bodypart boundry line Const MCVS_ESCNRESULT_ERROR_WRITING_PART_TO_FILE = 111 ' an error occured while writing a part to file Const MCVS_ESCNRESULT_SUCCESS = 0' Success return. Starting error values from 100 to avoid confusion with MCVS_QT values Const MCVS_ESCNRESULT_SYSTEM_ERROR = 116 ' A system error occurred Const NUM_FILES_DELETEONREBOOT_STR = {count} Const ONE_FILE_DELETEONREBOOT_STR = 1 Const PERPETUAL_NAG_GRACE_PERIOD = 0 '// Start Nagging after 0 Days after expiry. Const REBOOT_AFTER_CLEAN_STR = You Const REBOOT_AFTER_CLEAN_STR = You Const REBOOT_AFTER_DELETE_STR = You Const REBOOT_CLEAN_STR = You Const REBOOT_DELETE_STR = You Const strErrGettingExtList = An Const strLOSInstr = Specify Const strMessageASDisabled = McAfee Const strMessageASEnabled = McAfee Function ChangeVSOTasksButton( bEnable ) MCVS_SCAN_FAILED_STR = An MIX_NUM_FILES_CLEANED_STR = Files MIX_NUM_FILES_DELETED_STR = Files Runtime error STATUS_MIX_NUM_FILES_CLEANED_STR = Files STATUS_MIX_NUM_FILES_DELETED_STR = Files Sub StopForCriticalError (sMessage) USE_RESCUEDISK_STR = The