Path: csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Greg Newsgroups: it.comp.lang.visual-basic Subject: Re: Prog VB6 e antivirus Date: Sun, 20 Aug 2017 10:12:00 +0200 Organization: solani.org Lines: 30 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit X-Trace: solani.org 1503216720 17807 eJwFwYEBADAEA7CbTDHnGPX/CUtMXbwDbg5b21yQoU+aQYFYnMvWroROcaq0T+p1Pk4QHy1oEfo= (20 Aug 2017 08:12:00 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sun, 20 Aug 2017 08:12:00 +0000 (UTC) X-NNTP-Posting-Host: eJwFwYkBwCAIA8CVeEy04xCU/UfoHZLO3ovgwmBkNdndRQ/l6A2izo1k7M+wjE9G6ZhDl/sHML4RSA== X-Newsreader: MesNews/1.08.06.00-it X-User-ID: eJwVx8cBwDAIBLCVMOVgHYrZfwQn+skEB+0Kg9ra0tyM6HWKZD1TUh35dV2K1KHNwbNz/wMPKowRXg== Cancel-Lock: sha1:ZXCMFnPq2ru0t2Hd65gUBhnMHhI= Xref: csiph.com it.comp.lang.visual-basic:19135 Il 24/05/2017 20:41:30 Greg ha scritto: > Sub Main() > CurrH = Screen.Height / Screen.TwipsPerPixelY > CurrW = Screen.Width / Screen.TwipsPerPixelX > SavLog "Display", CurrW & "x" & CurrH > fMain.Show > End Sub Dopo uno scambio di battute con GbC sul altro ng, ho ripreso in mano quel vecchio codice indigesto a qualche antivirus compreso Kaspersky, e l'ho modificato in questo modo: h1 = Screen.Height h2 = Screen.TwipsPerPixelY w1 = Screen.Width w2 = Screen.TwipsPerPixelX -------- -------- SavLog "MNT", CStr(h2) & " " & CStr(w2) & " " Il codice risultava infetto anche scrivendo SavLog "Diplay" o "MOnitor" Allora ho cambiato in SavLog "MNT" e, convinto che sia unq questione di pattern o nomi di variabili sospetti, ho spostato la SavLog in avanti, dopo altre due righe di codice. Non capisco il perchè, e neanche prima, ma adesso Kasperscky non segnala piu un falso positivo. -- Greg