<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br><br></div><div>On Jan 7, 2016, at 8:14 PM, Changhui LIU <<a href="mailto:liuchanghui@linuxdeepin.com">liuchanghui@linuxdeepin.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div><div>Hi Aric:</div><div><br></div><div>The driver is a winelib hidusb.sys work in progress, not a real world native driver.</div><div>China Merchant Bank's on-line bank program use HidD_SetFeature/HidD_GetFeature to</div><div>access hid token.</div><div>I write this dirver based on patches developed by Alexander Morozov .</div><div>(<a href="http://wiki.winehq.org/USB">http://wiki.winehq.org/USB</a>, <a href="ftp://ftp.etersoft.ru/pub/people/amorozov/usb">ftp://ftp.etersoft.ru/pub/people/amorozov/usb</a> )</div><div><br></div></div></div></blockquote><div><br></div><div>Ok I understand. I believe the GetFeature and SetFeature parts of his are not implemented at all. They are not hard but where not my first priority. </div><div><br></div><div>I have read Alexander's code but it is not clear to me how you are hooking that into hid unless you have written a custom mini driver?</div><div><br></div><div>-aric</div><br><blockquote type="cite"><div><div><div>Now the on-line bank program can detect hid token on wine, but has some little bug.</div><div>I will send this driver source code to wine upstream end of this month.</div><div><br></div><div>Thank you for your great work on hidclass.sys .</div></div><div><br></div><div><br></div><div><sign signid="0"><div style="color:#909090;font-family:Arial Narrow;font-size:12px"><br><br><br><br>------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;"><div>Regards,</div><div>Changhui Liu</div>
</div></sign></div><div><qzone></qzone></div><div> </div><div><includetail><div> </div><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Aric Stewart"<<a href="mailto:aric@codeweavers.com">aric@codeweavers.com</a>>;</div><div><b>Date: </b> Thu, Jan 7, 2016 10:49 PM</div><div><b>To: </b> "fracting"<<a href="mailto:fracting@gmail.com">fracting@gmail.com</a>>; "Sebastian Lackner"<<a href="mailto:sebastian@fds-team.de">sebastian@fds-team.de</a>>; <wbr></div><div><b>Cc: </b> "wine-devel"<<a href="mailto:wine-devel@winehq.org">wine-devel@winehq.org</a>>; "刘昌辉"<<a href="mailto:liuchanghui@linuxdeepin.com">liuchanghui@linuxdeepin.com</a>>; <wbr></div><div><b>Subject: </b> Re: hidclass.sys: Properly quit hid_device_thread when bothcompletion event and halt event are signaled (try 2)</div></div><div> </div><br><br>On 1/7/16 12:47 AM, Qian Hong wrote:<br>> On Thu, Jan 7, 2016 at 1:23 PM, Sebastian Lackner <<a href="mailto:sebastian@fds-team.de">sebastian@fds-team.de</a>> wrote:<br>>> Wouldn't it be easier to just swap events[0] <-> events[1], to handle the<br>>> exit event with higher priority? I do not see any real need for two calls<br>>> to Wait*() functions.<br>> <br>> <br>> After discussing on irc, we agree that swapping  events[0] <-><br>> events[1] is not enough.<br>> The original patch fix not only one bug, but two separate problems.<br>> In the existent implementation, If ntrc is never set to<br>> STATUS_PENDING, then there is no chance to turn exit_now to true,<br>> Changhui's patch fix this bug, which is discovered by a real world<br>> online bank driver.<br>> <br><br>My ears perk up here.  Real world online bank driver?  Can I see and play with it. I am really looking for real world cases that use HID.<br><br>-aric</div><!--<![endif]--></includetail></div></div></blockquote></body></html>