<div dir="ltr"><br><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><a href="https://pcsclite.alioth.debian.org/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5" target="_blank">https://pcsclite.alioth.debian.org/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5</a></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">dwShareMode = SCARD_SHARE_EXCLUSIVE</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"></span></p><span class=""><p class="MsoNormal"> </p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Can you have each application establish an exclusive connection to the reader they need to use?</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><br></p></span></div></div></blockquote><div><br></div><div>Thanks the lead, however in my case, this won't do the trick:<br><br></div><div>- one reader is used to authenticate the user (via pam_pkcs11 and pam_krb5) when the user logs in first and to exit the screensaver and whenever he removes the reader (which locks the screen). This reader must not be used by the application (FreeRDP)<br></div><div>- the second reader is used in FreeRDP.<br><br></div><div>I could write a small app which would "lock" the first reader as soon I start FreeRDP so I won't be used by it (and even then, I am not sure about the behaviour of the application...). However I need to access the reader for time to time If I have to authenticate myself, for example to exit the screensaver... If the first reader is still locked I won't be able to resume my session...<br><br></div></div>Cheers<br></div></div></div>