http://bugs.winehq.org/show_bug.cgi?id=19867
--- Comment #9 from Juan Lang juan_lang@yahoo.com 2009-09-09 13:06:20 --- (In reply to comment #7)
Most of the functions in winscard are not implemented. So it will probably not work. The only implemented function is SCardAddReaderToGroupA, the stub functions are SCardAddReaderToGroupW and SCardEstablishContext. I started a very simple wrapper to use libpcsclite functions and it looks promising but most of the functions have the same name so I had to do some tricks on the code, I don't know how to fix this.
There are other thunking DLLs in the Wine source tree that do this. For example, look at the recently committed openal DLL.
What you're trying to do may already have been done. See http://www.winehq.org/pipermail/wine-devel/2007-April/056432.html