home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / usbd0906.zip / usb_20020906.zip / usbcalls / samples / Cardreader / pcscdefines.h < prev    next >
C/C++ Source or Header  |  2001-11-13  |  1KB  |  42 lines

  1. /*****************************************************************
  2. /
  3. / File   :   pcscdefines.h
  4. / Author :   David Corcoran <corcoran@linuxnet.com>
  5. / Date   :   June 15, 2000
  6. / Purpose:   This provides PC/SC shared defines.
  7. /            See http://www.linuxnet.com for more information.
  8. / License:   See file LICENSE
  9. /
  10. ******************************************************************/
  11.  
  12. #ifndef _pcscdefines_h_
  13. #define _pcscdefines_h_
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif 
  18.  
  19. /* Defines a list of pseudo types. */
  20.  
  21.   typedef unsigned long      DWORD;
  22.   typedef unsigned long*     PDWORD;
  23.   typedef unsigned char      UCHAR;
  24.   typedef unsigned char*     PUCHAR;
  25.   typedef char*              LPSTR;
  26.   typedef long               RESPONSECODE;
  27.   typedef void               VOID;
  28.  
  29.   #define STATUS_SUCCESS               0xFA
  30.   #define STATUS_UNSUCCESSFUL          0xFB
  31.   #define STATUS_COMM_ERROR            0xFC
  32.   #define STATUS_DEVICE_PROTOCOL_ERROR 0xFD
  33.  
  34.   #define MAX_RESPONSE_SIZE  264
  35.   #define MAX_ATR_SIZE       33
  36.  
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40.  
  41. #endif /* _pcscdefines_h_ */
  42.