Sophie

Sophie

distrib > Fedora > 13 > i386 > media > os > by-pkgid > 3ef085c66d4a743f8dec260630a0b19c > files > 132

pcsc-lite-doc-1.5.5-4.fc13.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>pcsc-lite: ifdhandler.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2-20100208 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_c68a5dfdca54003c765e303a18006edb.html">src</a>&nbsp;&raquo;&nbsp;<a class="el" href="dir_f67468d866d6eb9fc9120b0a9ddded4e.html">PCSC</a>
  </div>
</div>
<div class="contents">
<h1>ifdhandler.h</h1><a href="ifdhandler_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * MUSCLE SmartCard Development ( http://www.linuxnet.com )</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 1999-2004</span>
<a name="l00005"></a>00005 <span class="comment"> *  David Corcoran &lt;corcoran@linuxnet.com&gt;</span>
<a name="l00006"></a>00006 <span class="comment"> *  Damien Sauveron &lt;damien.sauveron@labri.fr&gt;</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * $Id: ifdhandler.h 3029 2008-06-26 13:58:52Z rousseau $</span>
<a name="l00009"></a>00009 <span class="comment"> */</span>
<a name="l00010"></a>00010 
<a name="l00016"></a>00016 <span class="preprocessor">#ifndef _ifd_handler_h_</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#define _ifd_handler_h_</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;<a class="code" href="pcsclite_8h.html" title="This keeps a list of defines for pcsc-lite.">pcsclite.h</a>&gt;</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span>
<a name="l00023"></a>00023 {
<a name="l00024"></a>00024 <span class="preprocessor">#endif</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026     <span class="comment">/*</span>
<a name="l00027"></a>00027 <span class="comment">     * List of data structures available to ifdhandler</span>
<a name="l00028"></a>00028 <span class="comment">     */</span>
<a name="l00029"></a>00029 
<a name="l00030"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html">00030</a>     <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__DEVICE__CAPABILITIES.html">_DEVICE_CAPABILITIES</a>
<a name="l00031"></a>00031     {
<a name="l00032"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#a21887226302077808af869013e839234">00032</a>         LPSTR <a class="code" href="struct__DEVICE__CAPABILITIES.html#a21887226302077808af869013e839234" title="Tag 0x0100.">Vendor_Name</a>;      
<a name="l00033"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#ac6c398ec8ba266fdc799d0465a800e8e">00033</a>         LPSTR <a class="code" href="struct__DEVICE__CAPABILITIES.html#ac6c398ec8ba266fdc799d0465a800e8e" title="Tag 0x0101.">IFD_Type</a>;         
<a name="l00034"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#a227146ff8ca274f3438e8fa5cd75fff0">00034</a>         DWORD <a class="code" href="struct__DEVICE__CAPABILITIES.html#a227146ff8ca274f3438e8fa5cd75fff0" title="Tag 0x0102.">IFD_Version</a>;      
<a name="l00035"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#add55b738f83e83e059bd57a4532b6227">00035</a>         LPSTR <a class="code" href="struct__DEVICE__CAPABILITIES.html#add55b738f83e83e059bd57a4532b6227" title="Tag 0x0103.">IFD_Serial</a>;       
<a name="l00036"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#a9d8cb7be5aefa94b894154eaa8e40968">00036</a>         DWORD <a class="code" href="struct__DEVICE__CAPABILITIES.html#a9d8cb7be5aefa94b894154eaa8e40968" title="Tag 0x0110.">IFD_Channel_ID</a>;   
<a name="l00038"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#acae2c1765a512171de17ad635360e596">00038</a>         DWORD <a class="code" href="struct__DEVICE__CAPABILITIES.html#acae2c1765a512171de17ad635360e596" title="Tag 0x0120.">Asynch_Supported</a>; 
<a name="l00039"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#aa2014c9a864a119c8872898b1dfebfdb">00039</a>         DWORD <a class="code" href="struct__DEVICE__CAPABILITIES.html#aa2014c9a864a119c8872898b1dfebfdb" title="Tag 0x0121.">Default_Clock</a>;    
<a name="l00040"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#add7822346e2001caeeed242b50ec9aff">00040</a>         DWORD <a class="code" href="struct__DEVICE__CAPABILITIES.html#add7822346e2001caeeed242b50ec9aff" title="Tag 0x0122.">Max_Clock</a>;        
<a name="l00041"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#a4b6d5b43b7631e3bd5ddfd89bbf28f69">00041</a>         DWORD <a class="code" href="struct__DEVICE__CAPABILITIES.html#a4b6d5b43b7631e3bd5ddfd89bbf28f69" title="Tag 0x0123.">Default_Data_Rate</a>;    
<a name="l00042"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#a5da7ca32d144e6e72fadd22061b49aaa">00042</a>         DWORD <a class="code" href="struct__DEVICE__CAPABILITIES.html#a5da7ca32d144e6e72fadd22061b49aaa" title="Tag 0x0124.">Max_Data_Rate</a>;    
<a name="l00043"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#ac7cf0dc7abe749b42926a2ca88e57b14">00043</a>         DWORD <a class="code" href="struct__DEVICE__CAPABILITIES.html#ac7cf0dc7abe749b42926a2ca88e57b14" title="Tag 0x0125.">Max_IFSD</a>;         
<a name="l00044"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#a8ee02ea282d90f900dd9c000f7aeaeed">00044</a>         DWORD <a class="code" href="struct__DEVICE__CAPABILITIES.html#a8ee02ea282d90f900dd9c000f7aeaeed" title="Tag 0x0126.">Synch_Supported</a>;  
<a name="l00045"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#a587e8b46ab7382278c2b32c39af4ea4d">00045</a>         DWORD <a class="code" href="struct__DEVICE__CAPABILITIES.html#a587e8b46ab7382278c2b32c39af4ea4d" title="Tag 0x0131.">Power_Mgmt</a>;       
<a name="l00046"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#a8eeffa9789e57461bd7877d5cec30a4c">00046</a>         DWORD <a class="code" href="struct__DEVICE__CAPABILITIES.html#a8eeffa9789e57461bd7877d5cec30a4c" title="Tag 0x0140.">Card_Auth_Devices</a>;    
<a name="l00047"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#a0fbfaa9f35b983ded2930221fed1efef">00047</a>         DWORD <a class="code" href="struct__DEVICE__CAPABILITIES.html#a0fbfaa9f35b983ded2930221fed1efef" title="Tag 0x0142.">User_Auth_Device</a>; 
<a name="l00048"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#aa3bd30cc192de4050358024c28d5c738">00048</a>         DWORD <a class="code" href="struct__DEVICE__CAPABILITIES.html#aa3bd30cc192de4050358024c28d5c738" title="Tag 0x0150.">Mechanics_Supported</a>;  
<a name="l00049"></a><a class="code" href="struct__DEVICE__CAPABILITIES.html#aa34b013ae3201a6688b09cd600d089cd">00049</a>         DWORD <a class="code" href="struct__DEVICE__CAPABILITIES.html#aa34b013ae3201a6688b09cd600d089cd" title="Tag 0x0180 - 0x01F0 User Defined.">Vendor_Features</a>;  
<a name="l00050"></a>00050     }
<a name="l00051"></a>00051     <a class="code" href="struct__DEVICE__CAPABILITIES.html">DEVICE_CAPABILITIES</a>, *<a class="code" href="struct__DEVICE__CAPABILITIES.html">PDEVICE_CAPABILITIES</a>;
<a name="l00052"></a>00052 
<a name="l00053"></a><a class="code" href="struct__ICC__STATE.html">00053</a>     <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ICC__STATE.html">_ICC_STATE</a>
<a name="l00054"></a>00054     {
<a name="l00055"></a><a class="code" href="struct__ICC__STATE.html#a68e1b22785e5fbcceff801fe329c0c4d">00055</a>         UCHAR <a class="code" href="struct__ICC__STATE.html#a68e1b22785e5fbcceff801fe329c0c4d" title="Tag 0x0300.">ICC_Presence</a>;     
<a name="l00056"></a><a class="code" href="struct__ICC__STATE.html#a24fd3a0dea063d85d9a632c0fb837bef">00056</a>         UCHAR <a class="code" href="struct__ICC__STATE.html#a24fd3a0dea063d85d9a632c0fb837bef" title="Tag 0x0301.">ICC_Interface_Status</a>; 
<a name="l00057"></a><a class="code" href="struct__ICC__STATE.html#a9d1ee318fc64d1067ca57ffabc770d48">00057</a>         UCHAR <a class="code" href="struct__ICC__STATE.html#a9d1ee318fc64d1067ca57ffabc770d48" title="Tag 0x0303.">ATR</a>[<a class="code" href="pcsclite_8h.html#a7ac7915ff6f9baefa66886c98bdbb91e" title="Maximum ATR size.">MAX_ATR_SIZE</a>];    
<a name="l00058"></a><a class="code" href="struct__ICC__STATE.html#ae328d7efdebc705c57e1f8f5d83ff3d2">00058</a>         UCHAR <a class="code" href="struct__ICC__STATE.html#ae328d7efdebc705c57e1f8f5d83ff3d2" title="Tag 0x0304.">ICC_Type</a>;         
<a name="l00059"></a>00059     }
<a name="l00060"></a>00060     <a class="code" href="struct__ICC__STATE.html">ICC_STATE</a>, *<a class="code" href="struct__ICC__STATE.html">PICC_STATE</a>;
<a name="l00061"></a>00061 
<a name="l00062"></a><a class="code" href="struct__PROTOCOL__OPTIONS.html">00062</a>     <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__PROTOCOL__OPTIONS.html">_PROTOCOL_OPTIONS</a>
<a name="l00063"></a>00063     {
<a name="l00064"></a><a class="code" href="struct__PROTOCOL__OPTIONS.html#a9f3f53ade7bfd52e1eb1ad75dc43164e">00064</a>         DWORD <a class="code" href="struct__PROTOCOL__OPTIONS.html#a9f3f53ade7bfd52e1eb1ad75dc43164e" title="Tag 0x0201.">Protocol_Type</a>;    
<a name="l00065"></a><a class="code" href="struct__PROTOCOL__OPTIONS.html#a04b89d1a589d560418e344b29ad70796">00065</a>         DWORD <a class="code" href="struct__PROTOCOL__OPTIONS.html#a04b89d1a589d560418e344b29ad70796" title="Tag 0x0202.">Current_Clock</a>;    
<a name="l00066"></a><a class="code" href="struct__PROTOCOL__OPTIONS.html#a05a7fb2d575d29720bf48bd751875a25">00066</a>         DWORD <a class="code" href="struct__PROTOCOL__OPTIONS.html#a05a7fb2d575d29720bf48bd751875a25" title="Tag 0x0203.">Current_F</a>;        
<a name="l00067"></a><a class="code" href="struct__PROTOCOL__OPTIONS.html#a0f9ae7c5145c7e7449ae7695c241074d">00067</a>         DWORD <a class="code" href="struct__PROTOCOL__OPTIONS.html#a0f9ae7c5145c7e7449ae7695c241074d" title="Tag 0x0204.">Current_D</a>;        
<a name="l00068"></a><a class="code" href="struct__PROTOCOL__OPTIONS.html#a684b3cd20e58e47aa455197e78cd88d8">00068</a>         DWORD <a class="code" href="struct__PROTOCOL__OPTIONS.html#a684b3cd20e58e47aa455197e78cd88d8" title="Tag 0x0205.">Current_N</a>;        
<a name="l00069"></a><a class="code" href="struct__PROTOCOL__OPTIONS.html#a9b4a081818c7181650dbe0ba87e43022">00069</a>         DWORD <a class="code" href="struct__PROTOCOL__OPTIONS.html#a9b4a081818c7181650dbe0ba87e43022" title="Tag 0x0206.">Current_W</a>;        
<a name="l00070"></a><a class="code" href="struct__PROTOCOL__OPTIONS.html#a438af1bc436efbbbde9aead9da70296b">00070</a>         DWORD <a class="code" href="struct__PROTOCOL__OPTIONS.html#a438af1bc436efbbbde9aead9da70296b" title="Tag 0x0207.">Current_IFSC</a>;     
<a name="l00071"></a><a class="code" href="struct__PROTOCOL__OPTIONS.html#acb0fb49f1072207c271f9025032fdd31">00071</a>         DWORD <a class="code" href="struct__PROTOCOL__OPTIONS.html#acb0fb49f1072207c271f9025032fdd31" title="Tag 0x0208.">Current_IFSD</a>;     
<a name="l00072"></a><a class="code" href="struct__PROTOCOL__OPTIONS.html#a12c5f1b7552dacecd7ca849f367557e9">00072</a>         DWORD <a class="code" href="struct__PROTOCOL__OPTIONS.html#a12c5f1b7552dacecd7ca849f367557e9" title="Tag 0x0209.">Current_BWT</a>;      
<a name="l00073"></a><a class="code" href="struct__PROTOCOL__OPTIONS.html#a400ce36ac25e949f7816cf081e4012f9">00073</a>         DWORD <a class="code" href="struct__PROTOCOL__OPTIONS.html#a400ce36ac25e949f7816cf081e4012f9" title="Tag 0x020A.">Current_CWT</a>;      
<a name="l00074"></a><a class="code" href="struct__PROTOCOL__OPTIONS.html#a2881b6d3d38a13ad821fa693ca3fc92e">00074</a>         DWORD <a class="code" href="struct__PROTOCOL__OPTIONS.html#a2881b6d3d38a13ad821fa693ca3fc92e" title="Tag 0x020B.">Current_EBC</a>;      
<a name="l00075"></a>00075     }
<a name="l00076"></a>00076     <a class="code" href="struct__PROTOCOL__OPTIONS.html">PROTOCOL_OPTIONS</a>, *<a class="code" href="struct__PROTOCOL__OPTIONS.html">PPROTOCOL_OPTIONS</a>;
<a name="l00077"></a>00077 
<a name="l00078"></a><a class="code" href="struct__SCARD__IO__HEADER.html">00078</a>     <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__SCARD__IO__HEADER.html">_SCARD_IO_HEADER</a>
<a name="l00079"></a>00079     {
<a name="l00080"></a>00080         DWORD Protocol;
<a name="l00081"></a>00081         DWORD Length;
<a name="l00082"></a>00082     }
<a name="l00083"></a>00083     <a class="code" href="struct__SCARD__IO__HEADER.html">SCARD_IO_HEADER</a>, *<a class="code" href="struct__SCARD__IO__HEADER.html">PSCARD_IO_HEADER</a>;
<a name="l00084"></a>00084 
<a name="l00085"></a>00085     <span class="comment">/*</span>
<a name="l00086"></a>00086 <span class="comment">     * End of structure list</span>
<a name="l00087"></a>00087 <span class="comment">     */</span>
<a name="l00088"></a>00088 
<a name="l00089"></a>00089     <span class="comment">/*</span>
<a name="l00090"></a>00090 <span class="comment">     * The list of tags should be alot more but this is all I use in the</span>
<a name="l00091"></a>00091 <span class="comment">     * meantime</span>
<a name="l00092"></a>00092 <span class="comment">     */</span>
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 <span class="preprocessor">#define TAG_IFD_ATR                     0x0303</span>
<a name="l00095"></a>00095 <span class="preprocessor"></span><span class="preprocessor">#define TAG_IFD_SLOTNUM                 0x0180</span>
<a name="l00096"></a>00096 <span class="preprocessor"></span><span class="preprocessor">#define TAG_IFD_SLOT_THREAD_SAFE        0x0FAC</span>
<a name="l00097"></a>00097 <span class="preprocessor"></span><span class="preprocessor">#define TAG_IFD_THREAD_SAFE             0x0FAD</span>
<a name="l00098"></a>00098 <span class="preprocessor"></span><span class="preprocessor">#define TAG_IFD_SLOTS_NUMBER            0x0FAE</span>
<a name="l00099"></a>00099 <span class="preprocessor"></span><span class="preprocessor">#define TAG_IFD_SIMULTANEOUS_ACCESS     0x0FAF</span>
<a name="l00100"></a>00100 <span class="preprocessor"></span><span class="preprocessor">#define TAG_IFD_POLLING_THREAD          0x0FB0</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span><span class="preprocessor">#define TAG_IFD_POLLING_THREAD_KILLABLE 0x0FB1</span>
<a name="l00102"></a>00102 <span class="preprocessor"></span>
<a name="l00103"></a>00103     <span class="comment">/*</span>
<a name="l00104"></a>00104 <span class="comment">     * End of tag list</span>
<a name="l00105"></a>00105 <span class="comment">     */</span>
<a name="l00106"></a>00106 
<a name="l00107"></a>00107     <span class="comment">/*</span>
<a name="l00108"></a>00108 <span class="comment">     * IFD Handler version number enummerations</span>
<a name="l00109"></a>00109 <span class="comment">     */</span>
<a name="l00110"></a>00110 <span class="preprocessor">#define IFD_HVERSION_1_0               0x00010000</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span><span class="preprocessor">#define IFD_HVERSION_2_0               0x00020000</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span><span class="preprocessor">#define IFD_HVERSION_3_0               0x00030000</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span>    <span class="comment">/*</span>
<a name="l00114"></a>00114 <span class="comment">     * End of version number enummerations</span>
<a name="l00115"></a>00115 <span class="comment">     */</span>
<a name="l00116"></a>00116 
<a name="l00117"></a>00117     <span class="comment">/*</span>
<a name="l00118"></a>00118 <span class="comment">     * List of defines available to ifdhandler</span>
<a name="l00119"></a>00119 <span class="comment">     */</span>
<a name="l00120"></a>00120 
<a name="l00121"></a>00121 <span class="preprocessor">#define IFD_POWER_UP            500</span>
<a name="l00122"></a>00122 <span class="preprocessor"></span><span class="preprocessor">#define IFD_POWER_DOWN          501</span>
<a name="l00123"></a>00123 <span class="preprocessor"></span><span class="preprocessor">#define IFD_RESET           502</span>
<a name="l00124"></a>00124 <span class="preprocessor"></span>
<a name="l00125"></a>00125 <span class="preprocessor">#define IFD_NEGOTIATE_PTS1      1</span>
<a name="l00126"></a>00126 <span class="preprocessor"></span><span class="preprocessor">#define IFD_NEGOTIATE_PTS2      2</span>
<a name="l00127"></a>00127 <span class="preprocessor"></span><span class="preprocessor">#define IFD_NEGOTIATE_PTS3              4</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span>
<a name="l00129"></a>00129 <span class="preprocessor">#define IFD_SUCCESS         0</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span><span class="preprocessor">#define IFD_ERROR_TAG           600</span>
<a name="l00131"></a>00131 <span class="preprocessor"></span><span class="preprocessor">#define IFD_ERROR_SET_FAILURE       601</span>
<a name="l00132"></a>00132 <span class="preprocessor"></span><span class="preprocessor">#define IFD_ERROR_VALUE_READ_ONLY   602</span>
<a name="l00133"></a>00133 <span class="preprocessor"></span><span class="preprocessor">#define IFD_ERROR_PTS_FAILURE       605</span>
<a name="l00134"></a>00134 <span class="preprocessor"></span><span class="preprocessor">#define IFD_ERROR_NOT_SUPPORTED     606</span>
<a name="l00135"></a>00135 <span class="preprocessor"></span><span class="preprocessor">#define IFD_PROTOCOL_NOT_SUPPORTED  607</span>
<a name="l00136"></a>00136 <span class="preprocessor"></span><span class="preprocessor">#define IFD_ERROR_POWER_ACTION      608</span>
<a name="l00137"></a>00137 <span class="preprocessor"></span><span class="preprocessor">#define IFD_ERROR_SWALLOW       609</span>
<a name="l00138"></a>00138 <span class="preprocessor"></span><span class="preprocessor">#define IFD_ERROR_EJECT         610</span>
<a name="l00139"></a>00139 <span class="preprocessor"></span><span class="preprocessor">#define IFD_ERROR_CONFISCATE        611</span>
<a name="l00140"></a>00140 <span class="preprocessor"></span><span class="preprocessor">#define IFD_COMMUNICATION_ERROR     612</span>
<a name="l00141"></a>00141 <span class="preprocessor"></span><span class="preprocessor">#define IFD_RESPONSE_TIMEOUT        613</span>
<a name="l00142"></a>00142 <span class="preprocessor"></span><span class="preprocessor">#define IFD_NOT_SUPPORTED       614</span>
<a name="l00143"></a>00143 <span class="preprocessor"></span><span class="preprocessor">#define IFD_ICC_PRESENT         615</span>
<a name="l00144"></a>00144 <span class="preprocessor"></span><span class="preprocessor">#define IFD_ICC_NOT_PRESENT     616</span>
<a name="l00145"></a>00145 <span class="preprocessor"></span><span class="preprocessor">#define IFD_NO_SUCH_DEVICE      617</span>
<a name="l00146"></a>00146 <span class="preprocessor"></span>
<a name="l00147"></a>00147 <span class="preprocessor">#ifndef RESPONSECODE_DEFINED_IN_WINTYPES_H</span>
<a name="l00148"></a>00148 <span class="preprocessor"></span>    <span class="keyword">typedef</span> <span class="keywordtype">long</span> RESPONSECODE;
<a name="l00149"></a>00149 <span class="preprocessor">#endif</span>
<a name="l00150"></a>00150 <span class="preprocessor"></span>
<a name="l00151"></a>00151     <span class="comment">/*</span>
<a name="l00152"></a>00152 <span class="comment">     * If you want to compile a V2.0 IFDHandler, define IFDHANDLERv2 before you</span>
<a name="l00153"></a>00153 <span class="comment">     * include this file.</span>
<a name="l00154"></a>00154 <span class="comment">     *</span>
<a name="l00155"></a>00155 <span class="comment">     * By default it is setup for for most recent version of the API (V3.0)</span>
<a name="l00156"></a>00156 <span class="comment">     */</span>
<a name="l00157"></a>00157 
<a name="l00158"></a>00158 <span class="preprocessor">#ifndef IFDHANDLERv2</span>
<a name="l00159"></a>00159 <span class="preprocessor"></span>
<a name="l00160"></a>00160     <span class="comment">/*</span>
<a name="l00161"></a>00161 <span class="comment">     * List of Defined Functions Available to IFD_Handler 3.0</span>
<a name="l00162"></a>00162 <span class="comment">     *</span>
<a name="l00163"></a>00163 <span class="comment">     * All the functions of IFD_Handler 2.0 are available</span>
<a name="l00164"></a>00164 <span class="comment">     * IFDHCreateChannelByName() is new</span>
<a name="l00165"></a>00165 <span class="comment">     * IFDHControl() API changed</span>
<a name="l00166"></a>00166 <span class="comment">     */</span>
<a name="l00167"></a>00167 
<a name="l00168"></a>00168     RESPONSECODE IFDHCreateChannelByName(DWORD, LPSTR);
<a name="l00169"></a>00169     RESPONSECODE IFDHControl(DWORD, DWORD, PUCHAR, DWORD, PUCHAR,
<a name="l00170"></a>00170         DWORD, LPDWORD);
<a name="l00171"></a>00171 <span class="preprocessor">#else</span>
<a name="l00172"></a>00172 <span class="preprocessor"></span>
<a name="l00173"></a>00173     <span class="comment">/*</span>
<a name="l00174"></a>00174 <span class="comment">     * List of Defined Functions Available to IFD_Handler 2.0</span>
<a name="l00175"></a>00175 <span class="comment">     */</span>
<a name="l00176"></a>00176 
<a name="l00177"></a>00177     RESPONSECODE IFDHControl(DWORD, PUCHAR, DWORD, PUCHAR, PDWORD);
<a name="l00178"></a>00178 
<a name="l00179"></a>00179 <span class="preprocessor">#endif</span>
<a name="l00180"></a>00180 <span class="preprocessor"></span>
<a name="l00181"></a>00181     <span class="comment">/*</span>
<a name="l00182"></a>00182 <span class="comment">     * common functions in IFD_Handler 2.0 and 3.0</span>
<a name="l00183"></a>00183 <span class="comment">     */</span>
<a name="l00184"></a>00184     RESPONSECODE IFDHCreateChannel(DWORD, DWORD);
<a name="l00185"></a>00185     RESPONSECODE IFDHCloseChannel(DWORD);
<a name="l00186"></a>00186     RESPONSECODE IFDHGetCapabilities(DWORD, DWORD, PDWORD, PUCHAR);
<a name="l00187"></a>00187     RESPONSECODE IFDHSetCapabilities(DWORD, DWORD, DWORD, PUCHAR);
<a name="l00188"></a>00188     RESPONSECODE IFDHSetProtocolParameters(DWORD, DWORD, UCHAR,
<a name="l00189"></a>00189         UCHAR, UCHAR, UCHAR);
<a name="l00190"></a>00190     RESPONSECODE IFDHPowerICC(DWORD, DWORD, PUCHAR, PDWORD);
<a name="l00191"></a>00191     RESPONSECODE IFDHTransmitToICC(DWORD, <a class="code" href="struct__SCARD__IO__HEADER.html">SCARD_IO_HEADER</a>, PUCHAR,
<a name="l00192"></a>00192         DWORD, PUCHAR, PDWORD, PSCARD_IO_HEADER);
<a name="l00193"></a>00193     RESPONSECODE IFDHICCPresence(DWORD);
<a name="l00194"></a>00194 
<a name="l00195"></a>00195     <span class="comment">/*</span>
<a name="l00196"></a>00196 <span class="comment">     * List of Defined Functions Available to IFD_Handler 1.0</span>
<a name="l00197"></a>00197 <span class="comment">     */</span>
<a name="l00198"></a>00198 
<a name="l00199"></a>00199     RESPONSECODE IO_Create_Channel(DWORD);
<a name="l00200"></a>00200     RESPONSECODE IO_Close_Channel(<span class="keywordtype">void</span>);
<a name="l00201"></a>00201     RESPONSECODE IFD_Get_Capabilities(DWORD, PUCHAR);
<a name="l00202"></a>00202     RESPONSECODE IFD_Set_Capabilities(DWORD, PUCHAR);
<a name="l00203"></a>00203     RESPONSECODE IFD_Set_Protocol_Parameters(DWORD, UCHAR, UCHAR,
<a name="l00204"></a>00204         UCHAR, UCHAR);
<a name="l00205"></a>00205     RESPONSECODE IFD_Power_ICC(DWORD);
<a name="l00206"></a>00206     RESPONSECODE IFD_Swallow_ICC(<span class="keywordtype">void</span>);
<a name="l00207"></a>00207     RESPONSECODE IFD_Eject_ICC(<span class="keywordtype">void</span>);
<a name="l00208"></a>00208     RESPONSECODE IFD_Confiscate_ICC(<span class="keywordtype">void</span>);
<a name="l00209"></a>00209     RESPONSECODE IFD_Transmit_to_ICC(<a class="code" href="struct__SCARD__IO__HEADER.html">SCARD_IO_HEADER</a>, PUCHAR, DWORD,
<a name="l00210"></a>00210         PUCHAR, PDWORD, PSCARD_IO_HEADER);
<a name="l00211"></a>00211     RESPONSECODE IFD_Is_ICC_Present(<span class="keywordtype">void</span>);
<a name="l00212"></a>00212     RESPONSECODE IFD_Is_ICC_Absent(<span class="keywordtype">void</span>);
<a name="l00213"></a>00213 
<a name="l00214"></a>00214 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00215"></a>00215 <span class="preprocessor"></span>}
<a name="l00216"></a>00216 <span class="preprocessor">#endif</span>
<a name="l00217"></a>00217 <span class="preprocessor"></span>
<a name="l00218"></a>00218 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address>
</body>
</html>