Implementation of SCARD_IOCTL_LOCATECARDSBYATRA & Modification to make Smartcard reader with PinPad work

@Vinche59 hum... wtf? How is the Thinlinc environment structured? You mean you have a Windows client connected to a Thinlinc server, which then uses xfreerdp to connect to a Windows server?

How does the proprietary pcsc-lite library work? Is it supposed to be the same as a regular pcsc-lite, or it is doing anything fancy under the hood? What needs to be tested is simple xfreerdp on Linux connected to a Windows server.

No need to panic for now, but here's what you can do: try and figure out what exactly goes wrong when the results are being filtered and when you just pass them as is. The reason why they need to be filtered is because this is where we absorb some of the differences between pcsc-lite and WinSCard, so we can make pcsc-lite more WinSCard-like. Did you identify the difference that made it work when just letting it go through, unmodified?