<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Sure, you’re right.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>It’s a documentation problem, I should have read the return code of pccslite before posting to the list.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Have a nice day,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Christophe<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>De :</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Pcsclite-muscle [mailto:pcsclite-muscle-bounces+christophe.ferrando=sylyca.com@lists.alioth.debian.org] <b>De la part de</b> Ludovic Rousseau<br><b>Envoyé :</b> vendredi 3 juin 2016 09:34<br><b>À :</b> Talks about MUSCLE <pcsclite-muscle@lists.alioth.debian.org><br><b>Objet :</b> Re: [Pcsclite-muscle] SCardGetAttrib<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><div><div><div><p class=MsoNormal>2016-06-02 18:16 GMT+02:00 Christophe FERRANDO <<a href="mailto:christophe.ferrando@sylyca.com" target="_blank">christophe.ferrando@sylyca.com</a>>:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>Hi,</span><o:p></o:p></p></div></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Hello Chirstophe,<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>With the last pcsclite version, i get this error :</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>SCardGetAttrib:[8010001f] Feature not supported.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>              rv = </span><b><span style='font-size:10.0pt;font-family:"Courier New";color:#642880;background:silver'>SCardEstablishContext</span></b><span style='font-size:10.0pt;font-family:"Courier New";color:black'>(SCARD_SCOPE_USER, NULL, NULL, &hContext);</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>               CHECK(</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>"SCardEstablishContext"</span><span style='font-size:10.0pt;font-family:"Courier New";color:black'>, rv)</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>               rv = </span><b><span style='font-size:10.0pt;font-family:"Courier New";color:#642880'>SCardConnect</span></b><span style='font-size:10.0pt;font-family:"Courier New";color:black'>(hContext,mszReaders,</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>                         SCARD_SHARE_EXCLUSIVE,SCARD_PROTOCOL_T0, &hCard, &dwActiveProtocol);</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>              dwAttrLen = SCARD_AUTOALLOCATE;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>              rv = </span><b><span style='font-size:10.0pt;font-family:"Courier New";color:#642880'>SCardGetAttrib</span></b><span style='font-size:10.0pt;font-family:"Courier New";color:black'>(hCard,SCARD_ATTR_USER_TO_CARD_AUTH_DEVICE,(</span><b><span style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>unsigned</span></b><span style='font-size:10.0pt;font-family:"Courier New";color:black'> </span><b><span style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>char</span></b><span style='font-size:10.0pt;font-family:"Courier New";color:black'>*)&pbAttr,&dwAttrLen);</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>              CHECK(</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>"SCardGetAttrib"</span><span style='font-size:10.0pt;font-family:"Courier New";color:black'>, rv);</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>              rv = </span><b><span style='font-size:10.0pt;font-family:"Courier New";color:#642880'>SCardFreeMemory</span></b><span style='font-size:10.0pt;font-family:"Courier New";color:black'>(hContext,pbAttr);</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>              CHECK(</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>"SCardFreeMemory"</span><span style='font-size:10.0pt;font-family:"Courier New";color:black'>, rv);</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>              rv = </span><b><span style='font-size:10.0pt;font-family:"Courier New";color:#642880'>SCardDisconnect</span></b><span style='font-size:10.0pt;font-family:"Courier New";color:black'>(hCard, SCARD_LEAVE_CARD);</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>              CHECK(</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>"SCardDisconnect"</span><span style='font-size:10.0pt;font-family:"Courier New";color:black'>, rv)</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>              rv = </span><b><span style='font-size:10.0pt;font-family:"Courier New";color:#642880'>SCardReleaseContext</span></b><span style='font-size:10.0pt;font-family:"Courier New";color:black'>(hContext);</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>              CHECK(</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>"SCardReleaseContext"</span><span style='font-size:10.0pt;font-family:"Courier New";color:black'>, rv)</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier New";color:black'>              </span><b><span style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>break</span></b><span style='font-size:10.0pt;font-family:"Courier New";color:black'>;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#57585A'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#57585A'>I expect </span><span style='font-size:13.5pt;color:black'>0x00000032, </span><span style='font-size:9.0pt;font-family:"Arial",sans-serif'>ERROR_NOT_SUPPORTED (0x32)</span><o:p></o:p></p></div></div></blockquote><div><p class=MsoNormal><br><span style='font-size:9.0pt;font-family:"Arial",sans-serif'>ERROR_NOT_SUPPORTED is not a PC/SC error, even on Windows.</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial",sans-serif'>The windows list is at <a href="https://msdn.microsoft.com/fr-fr/library/windows/desktop/aa374738%28v=vs.85%29.aspx#smart_card_return_values">https://msdn.microsoft.com/fr-fr/library/windows/desktop/aa374738%28v=vs.85%29.aspx#smart_card_return_values</a></span><o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>I think it is a bug on the Windows side. Either the windows code is bogus or the Windows documentation is wrong.<o:p></o:p></p></div><div><p class=MsoNormal>Maybe you should report the problem to Microsoft?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>Bye<o:p></o:p></p><div><div><div><p class=MsoNormal>-- <o:p></o:p></p><div><p class=MsoNormal> Dr. Ludovic Rousseau<o:p></o:p></p></div></div></div></div></div></div></body></html>