<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>(http://wiki.winehq.org/USB, ftp://ftp.etersoft.ru/pub/people/amorozov/usb )</div><div><br></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"<aric@codeweavers.com>;</div><div><b>Date: </b> Thu, Jan 7, 2016 10:49 PM</div><div><b>To: </b> "fracting"<fracting@gmail.com>; "Sebastian Lackner"<sebastian@fds-team.de>; <wbr></div><div><b>Cc: </b> "wine-devel"<wine-devel@winehq.org>; "刘昌辉"<liuchanghui@linuxdeepin.com>; <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 <sebastian@fds-team.de> 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>