<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-03-11 14:46 GMT+01:00 Maksim Ivanov <span dir="ltr"><<a href="mailto:emaxx@google.com" target="_blank">emaxx@google.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Ludovic,<br>
<br>
Thanks for the fast replies!<br>
<br>
<br>
I additionally checked the code examples and found a couple of small issues:<br>
<br>
* Code example for SCardCancel: the sample looks like SCardCancel is<br>
called on the same thread as SCardGetStatusChange, which shouldn't<br>
happen probably. Also the SCardGetStatusChange argument values are a<br>
bit misleading: dwTimeout=0 means that no actual waiting will occur<br>
(and, hence, no cancellation is useful), rgReaderStates receives<br>
SCARD_READERSTATE instead of LPSCARD_READERSTATE, and<br>
cReaders=cReaders is not initialized to 1 in the sample code.<br>
<br>
* Code example for SCardControl: missing comma in pbSendBuffer assignment.<br>
<br>
* Code example for SCardListReaders: missing semicolon after<br>
assignment to dwReaders.<br>
<br></blockquote><div><br></div><div>Fixed in 6cd24b9c83513c207cff39afbf9b653cbf8d004a<br><br></div><div>A better solution would be to include real/compilable code in Doxygen.<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
What else I badly missed in the PC/SC-Lite docs is the clear<br>
description of what arguments are optional (i.e. can be NULL instead<br>
of the real pointers). Often this follows from the textual description<br>
of the function, or can be guessed. And in some cases this information<br>
cannot be derived from the context at all (like pioRecvPci argument of<br>
the SCardTransmit function).<br>
<br>
It would be great if this information would be easily available in the<br>
"Parameters" section of each function's description.<br></blockquote><div><br></div><div>Good idea.<br><br></div><div>Bye<br clear="all"></div></div><br>-- <br><div class="gmail_signature"> Dr. Ludovic Rousseau</div>
</div></div>