http://bugs.winehq.org/show_bug.cgi?id=25820
Summary: Token Administration Utility for ICBC online banking failed to list USB devices (without wine unofficial USB patches) Product: Wine Version: 1.3.11 Platform: All OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 AssignedTo: wine-bugs@winehq.org ReportedBy: fracting@gmail.com
Something about G&D USB-Shield: it is required by ICBC persional internet banking while online trading. Here is the G&D USB-Shield driver for Windows, safesign_icbc_per.exe : http://goo.gl/LM588 ( from http://goo.gl/Ft4Ub) After install the USB-Shield driver,there is a tool called Token Administration Utility, it allow us manager the usbkey with a client program. We can see tokenadmin.exe in "Program Files/ICBCEbankTools/G&D/Management Utility", and that is the Token Administration Utility.
Below is screenshots for tokenadmin.exe in WinXP,both of them has six devices listing in the tokenadmin window: Before pluging a usbkey: http://goo.gl/Wkdon After pluging a usbkey: http://goo.gl/BGIbl
scardsvr.exe is needed for running tokenadmin.exe normally,sence EITHER manually setting the "Start" value of HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SCardSvr from default 2 to 4 OR killing scardsvr.exe with taskmgr will cause errors, however they have a bit differents. Screenshot (Register modified, there are only two devices listed in the tokenadmin window): http://goo.gl/VNn2N Screenshot (scardsvr.exe killed, there is no device listed in the tokenadmin window): http://goo.gl/UcYxp
Also winscard.dll is important for tokenadmin.exe,below is the steps to show that.
Step 1 $ rm -rf ~/.wine $ winetricks -q mfc42 crypt32 #see bug25784 http://goo.gl/1Cm5v for the reason to override crypt32.dll
Step 2 $ wine safesign_icbc_per.exe #install tokenadmin.exe
see attachment for log
Step 3 $ wine tokenadmin.exe log: fixme:winscard:SCardReleaseStartedEvent stub fixme:winscard:SCardEstablishContext (2,(nil),(nil),0x32f264) stub fixme:winscard:SCardEstablishContext (2,(nil),(nil),0x658f90) stub
Tokenadmin.exe can't list the usb devices, the result is exactly the same as that in WinXP while scardsvr.exe is killed ,here is the screenshot (no device listed): http://goo.gl/kqPdb the same as: Screenshot (WinXP with scardsvr.exe killed, no device listed): http://goo.gl/UcYxp
However, replace winscard.dll may change something. Step 3' override winscard.dll $ cp winscard.dll ~/.wine/drive_c/windows/system32 $ export WINEDLLOVERRIDES="winscard.dll=n,b" $ wine tokenadmin.exe
This time both the log and the screenshot changes, there is no fixme:winscard message, and there are two devices lists in tokenadmin window.
log: fixme:wtsapi:WTSRegisterSessionNotification Stub 0x40082 0x00000000 fixme:wtsapi:WTSQuerySessionInformationA Stub (nil) 0xffffffff 8 0x32f234 0x32f230 fixme:wtsapi:WTSRegisterSessionNotification Stub 0x40082 0x00000000 fixme:win:RegisterDeviceNotificationA (hwnd=0x10084, filter=0xe8e9c4,flags=0x00000000) returns a fake device notification handle! fixme:wtsapi:WTSRegisterSessionNotification Stub 0x40082 0x00000000 fixme:wtsapi:WTSRegisterSessionNotification Stub 0x40082 0x00000000 fixme:wtsapi:WTSRegisterSessionNotification Stub 0x40082 0x00000000 fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
screenshot(two devices listed): http://goo.gl/7gWbt Looks the same as that in WinXP with Register modified, Screenshot ( two devices listed ): http://goo.gl/VNn2N
I also try scard4wine to replace winscard.dll follow its instuction: http://goo.gl/1Epa5 , there is also something different. Step 3'' $ /usr/bin/install -c winscard.dll.so $WINE_PREFIX/lib/wine/winscard.dll.so $ /usr/bin/install -c -m 644 libwinscard.def $WINE_PREFIX/lib/wine/libwinscard.def
then Step 1, Step 2, Step 3. this time, there is no fixme:winscard message, in fact there is no any log, but there is also no device listed.Screenshot is the same as http://goo.gl/kqPdb
I also test this issue with wine unofficial USB patches, and posted my result with title "Fail to use USB-Key/USB-Shield with wine USB patch :cannot start service 'SCardSvr':win error code:0x00000424" in wine-dev mailling list.
Best wishes!
http://bugs.winehq.org/show_bug.cgi?id=25820
--- Comment #1 from fracting fracting@gmail.com 2011-01-19 12:00:00 CST --- Created an attachment (id=32911) --> (http://bugs.winehq.org/attachment.cgi?id=32911) Log: install safesign_icbc_per.exe with wine
http://bugs.winehq.org/show_bug.cgi?id=25820
fracting fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.icbc.com.cn/icbc | |/html/download/dkq/SafeSign | |_ICBC_Per.exe
http://bugs.winehq.org/show_bug.cgi?id=25820
--- Comment #2 from fracting fracting@gmail.com 2011-05-05 14:33:38 CDT --- Since the safesign_icbc_per.exe is updated by ICBC, the new version bring some new bugs, and the old version is not available to be downloaded any more, I suggest to close this bug, and I'm going to open new bugs for it with clearer description, what do you think?
http://bugs.winehq.org/show_bug.cgi?id=25820
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |ABANDONED
--- Comment #3 from Juan Lang juan_lang@yahoo.com 2011-05-05 15:15:08 CDT --- Agreed, if we can't download the old version it's not worth keeping this around. Marking abandoned.
http://bugs.winehq.org/show_bug.cgi?id=25820
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Juan Lang juan_lang@yahoo.com 2011-05-05 15:15:50 CDT --- Closing abandoned. Please open new bug(s) for new version. Thanks!
http://bugs.winehq.org/show_bug.cgi?id=25820
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|All |Other
--- Comment #5 from Austin English austinenglish@gmail.com 2012-02-23 15:27:20 CST --- Removing deprecated 'All' Platform.