<div class="content" name="Status_Return" uuid="987c1358-ad6b-4c8e-88e1-06210c28a66f"><p>The Status_Return structure defines return information about
the status of the <a href="d361b24c-611e-46c5-9ac6-93cb6490a472#gt_5cddf14c-b925-4494-9b55-d2c8259f9ad0" data-linktype="relative-path">smart card
reader</a> (for more information, see sections <a href="c6812fca-fa3e-4771-a388-7d24ac535c94" data-linktype="relative-path">3.1.4.33</a> and <a href="e3781ea6-3ac2-4c7a-a6d7-804411b858dc" data-linktype="relative-path">3.1.4.34</a>).</p><dl>
<dd>
<div><pre> typedef struct _Status_Return {
   long ReturnCode;
   [range(0,65536)] unsigned long cBytes;
   [unique] [size_is(cBytes)] byte *mszReaderNames;
   unsigned long dwState;
   unsigned long dwProtocol;
   byte pbAtr[32];
   [range(0,32)] unsigned long cbAtrLen;
 } Status_Return;
</pre></div>
</dd></dl><p><b>ReturnCode:</b>  <a href="d361b24c-611e-46c5-9ac6-93cb6490a472#gt_799103ab-b3cb-4eab-8c55-322821b2b235" data-linktype="relative-path">HRESULT</a> or Win32 Error
code. Zero indicates success; any other value indicates failure.</p><p><b>cBytes:</b>  The number of bytes in the <b>mszReaderNames</b>
field. </p><p><b>mszReaderNames:</b>  A <a href="d361b24c-611e-46c5-9ac6-93cb6490a472#gt_63ae0a08-6a05-4269-99d0-3d3b7633949b" data-linktype="relative-path">multistring</a> containing the
names that the reader is known by. The value of this is dependent on the
context (<a href="d361b24c-611e-46c5-9ac6-93cb6490a472#gt_09d6bc87-34ed-48e8-b4d4-962e90543462" data-linktype="relative-path">IOCTL</a>) that it
is used. </p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>SCARD_IOCTL_STATUSA 0x000900C8</td>
  <td>ASCII multistring</td>
 </tr><tr>
  <td>SCARD_IOCTL_STATUSW 0x000900CC</td>
  <td>Unicode multistring</td>
 </tr></tbody></table>
</dd></dl><p><b>dwState:</b>  The current state of the <a href="d361b24c-611e-46c5-9ac6-93cb6490a472#gt_7c0fcc4a-476a-4d3a-87c0-7a503c14ef05" data-linktype="relative-path">smart card</a> in the reader.
Possible values are specified in section <a href="264bc504-1195-43ff-a057-3d86a02c5d9c" data-linktype="relative-path">2.2.4</a>. </p><p><b>dwProtocol:</b>  The current protocol,
if any. Possible values are specified in section <a href="41673567-2710-4e86-be87-7b6f46fe10af" data-linktype="relative-path">2.2.5</a>.</p><p><b>pbAtr:</b>  A pointer to a buffer that
receives the <a href="d361b24c-611e-46c5-9ac6-93cb6490a472#gt_2a8fc201-65aa-4040-980c-f4843467e6bf" data-linktype="relative-path">ATR</a> string
from the currently inserted card, if available.</p><p><b>cbAtrLen:</b>  The number of bytes in
the ATR string.</p></div>