http://bugs.winehq.org/show_bug.cgi?id=26977
Summary: native scardsvr.exe required implementation of RegisterDeviceNotificationA Product: Wine Version: 1.3.18 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 AssignedTo: wine-bugs@winehq.org ReportedBy: fracting@gmail.com
Created an attachment (id=34405) --> (http://bugs.winehq.org/attachment.cgi?id=34405) SCardSvr.reg
1. export [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SCardSvr] from Windows XP regedit
2. import reg file to wine regedit. (see attachment SCardSvr.reg for the reg file.)
3. copy native scardsvr.exe to $WINEPREFIX/driver_c/windows/system32
4. run winecfg, then scardsvr.exe will be started as a service.
$ winecfg fixme:win:RegisterDeviceNotificationA (hwnd=0x1109c8, filter=0x64e9c0,flags=0x00000001) returns a fake device notification handle!
scardsvr.exe is required for some smart card readers.
http://bugs.winehq.org/show_bug.cgi?id=26977
--- Comment #1 from Juan Lang juan_lang@yahoo.com 2011-04-30 12:37:23 CDT --- fixmes are not bugs. What's the actual problem?
http://bugs.winehq.org/show_bug.cgi?id=26977
--- Comment #2 from fracting fracting@gmail.com 2011-04-30 13:26:36 CDT --- (In reply to comment #1)
fixmes are not bugs. What's the actual problem?
It is a bit complex:
I'm trying to run tokenadmin.exe on wine.
On WinXP, if I kill scardsvr.exe, tokenadmin.exe will failed to list the smart card readers, so I conclude that tokenadmin.exe required scardsvr.exe .
When I try to run scardsvr.exe as a service on wine, I get the "fixme:win:RegisterDeviceNotificationA" , When I run tokenadmin.exe on wine, I get the same fixme message as well.
The "actual problem" is, tokenadmin.exe won't work, and I don't think scardsvr.exe works either. However, even RegisterDeviceNotificationA is implemented, I don't think tokenadmin.exe will work ( Here "work" means can detect my usbkey, which required native usb drivers). Sense wine does not support native usb driver yet, I don't expect this bug report will bring me a useful tokenadmin.exe, I'm just trying to decompose the complex problem to serveral minor issues and then report separate bugs, I wonder if RegisterDeviceNotificationA is implemented, how far can I get my tokenadmin.exe work (with the unofficial usb patchset).
If I've posted an invalid report, please ignore it, sorry for that :( If possible, what should I append to make this report useful? Maybe a simple test case to prove that scardsvr.exe don't work?
BTW, WineReleaseCriteria says wine1.4 will bring USB support, I wonder how is the progress now?
http://bugs.winehq.org/show_bug.cgi?id=26977
fracting fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #3 from fracting fracting@gmail.com 2011-09-26 04:54:42 CDT --- Marking invalid.
http://bugs.winehq.org/show_bug.cgi?id=26977
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Austin English austinenglish@gmail.com 2011-09-27 12:23:41 CDT --- Closing.