<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><div><span>Arnon,</span></div><div><span><br></span></div><div><span>I tried "</span><span style="font-size: 12pt; ">//ret = _running = false"</span><span style="font-size: 12pt; ">earlier and noticed vdagent was not stopped but had seen mouse tracking offset issue.</span></div><div><span style="font-size: 12pt; ">I can't stop VDService because VDAgent functionality is mandatory.</span></div><div><span style="font-size: 12pt; "><br></span></div><div><span style="font-size: 12pt; ">As Yaniv suggestion, will it be possible </span><span style="font-size: 12pt; ">keep running VDAgent and </span><span style="font-size: 12pt; ">keeping server mode for such apps?</span></div><div><span style="font-size: 12pt; ">Do you have any other ideas to fix this?</span></div><div><span style="font-size: 12pt;
 "><br></span></div><div><span style="font-size: 12pt; ">Thanks\Naga.</span></div></span></div><div><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Yaniv Kaul <ykaul@redhat.com><br> <b><span style="font-weight: bold;">To:</span></b> Arnon Gilboa <agilboa@redhat.com> <br><b><span style="font-weight: bold;">Cc:</span></b> spice-devel@lists.freedesktop.org; Naga Mohan Pothula <nagamohan.pothula@yahoo.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, August 15, 2012 5:19 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Spice-devel] Mouse failure happens when mouse hovers on some Apps like Kaspersky Anti-virus tool.<br> </font> </div> <br>
On 08/15/2012 01:05 PM, Arnon Gilboa wrote:<br>> Yaniv Kaul wrote:<br>>> ----- Original Message -----<br>>>> Hi Naga,<br>>>> <br>>>> Tested and reproduced it on Win7.<br>>> <br>>> I bet you'd see this in any many personal FW / Antivirus, to prevent a malicious software from manipulating it via the mouse (and disable it, for example).<br>>> <br>>> I'd try with ZoneAlarm (http://www.zonealarm.com/security/en-us/zonealarm-pc-security-free-firewall.htm#) for example, which I know has such protection.<br>>> Y.<br>> Seems you are right. So the only option we have is (auto)fallback to server mode / usbtablet for such apps?<br><br>If you can do it automatically, I guess so.<br>Y.<br><br>>>> I don't have a patch yet for solving it, but you comment out the<br>>>> line:<br>>>> //ret = _running = false;<br>>>> so vdagent won't exit, although mouse will not be
 effective on such<br>>>> apps.<br>>>> If it's a must, meanwhile you can always switch back to server mouse<br>>>> mode by stopping vdservice.<br>>>> You can also use usbtablet in case you don't need vdagent<br>>>> functionality<br>>>> (multi mon, c&p etc.)<br>>>> I'll update you when I have a patch ready (currently not top<br>>>> priority).<br>>>> <br>>>> Regards,<br>>>> Arnon<br>>>> <br>>>> <br>>>> <br>>>> Naga Mohan Pothula wrote:<br>>>>> Hi Arnon,<br>>>>> <br>>>>> Have you checked installing kaspersky trail version? Here is the<br>>>>> eror that causes vdagent.exe to be terminated abruptly.<br>>>>> VDAgent::send_input::SendInput failed: 0<br>>>>> VDAgent::run::Agent stopped<br>>>>> <br>>>>> I've checked integrity level
 of Kaspersky UI process and it is<br>>>>> lesser than VDAgent.exe<br>>>>> <br>>>>> <br>>>>> Thanks/Naga.<br>>>>> <br>>>>> <br>>>>> ________________________________<br>>>>> From: Arnon Gilboa <<a ymailto="mailto:agilboa@redhat.com" href="mailto:agilboa@redhat.com">agilboa@redhat.com</a>>fail due to UIPI blocking<br>>>>> To: Naga Mohan Pothula <<a ymailto="mailto:nagamohan.pothula@yahoo.com" href="mailto:nagamohan.pothula@yahoo.com">nagamohan.pothula@yahoo.com</a>><br>>>>> Cc: "<a ymailto="mailto:spice-devel@lists.freedesktop.org" href="mailto:spice-devel@lists.freedesktop.org">spice-devel@lists.freedesktop.org</a>"<br>>>>> <<a ymailto="mailto:spice-devel@lists.freedesktop.org" href="mailto:spice-devel@lists.freedesktop.org">spice-devel@lists.freedesktop.org</a>><br>>>>> Sent: Sunday, August 5,
 2012 9:54 AM<br>>>>> Subject: Re: [Spice-devel] Mouse failure happens when mouse hovers<br>>>>> on some Apps like Kaspersky Anti-virus tool.<br>>>>> <br>>>>> Naga Mohan Pothula wrote:<br>>>>>> Hi,<br>>>>>> <br>>>>>> VDAgent in Windows 7 guest gets terminated when mouse hovers on<br>>>>>> some applications like Kaspersky Anti-virus tool. Noticed<br>>>>>> SendInput Windows API fails whenever any mouse operation performs<br>>>>>> on this tool. "handle_mouse_event" method returns with failure<br>>>>>> due to this and causes VDAgent to terminate.<br>>>>> what's the error logged in %windir%\temp\vdagent.log? look for<br>>>>> "SendInput failed: ...")<br>>>>>> Initially, I thought it is UIPI ie., Process Integrity Level issue<br>>>>>> and observed as
 follows:<br>>>>>> VDService with SYSTEM a/c creates VDAgent with SYTEM a/c<br>>>>>> Kaspersky tool is service-based app with SYSTEM a/c creates<br>>>>>> process to handle UI with logged-on user and with 'Medium'<br>>>>>> Integrity level.<br>>>>>> <br>>>>>> Don't understand why SendInput API fails even VDAgent with higher<br>>>>>> integrity level than Kaspersky tool?<br>>>>>> Is there any other way to make VDAgent works for all applications<br>>>>>> installed in windows guest?<br>>>>> will give it a look and update you accordingly.<br>>>>>> Thanks\Naga.<br>>>>>> <br>>>>>> ------------------------------------------------------------------------ <br>>>>>> <br>>>>>> _______________________________________________<br>>>>>>
 Spice-devel mailing list<br>>>>>> <a ymailto="mailto:Spice-devel@lists.freedesktop.org" href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>>>>>> http://lists.freedesktop.org/mailman/listinfo/spice-devel<br>>>> _______________________________________________<br>>>> Spice-devel mailing list<br>>>> <a ymailto="mailto:Spice-devel@lists.freedesktop.org" href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>>>> <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>>>> <br>> <br><br><br><br> </div> </div>  </div></body></html>