@MAXX
PRIME
R
EFERENCE
M
ANUAL
32
7. Annexes
7.1.
Annex A – Status words table
SW1
SW2
Description
0x90
0x00
NO ERROR
0x67
0x00
LENGTH INCORRECT
0x6D
0x00
INVALID INSTRUCTION BYTE
0x6E
0x00
CLASS NOT SUPPORTED
0x6F
0x00
UNKNOWN COMMAND
0x63
0x00
NO INFORMATION GIVEN
0x65
0x81
MEMORY FAILURE
0x68
0x00
CLASS BYTE INCORRECT
0x6A
0x81
FUNCTION NOT SUPPORTED
0x6B
0x00
WRONG PARAMETER P1-P2
7.2.
Annex B – Sample code using escape commands
through Escape IOCTL
File Name : T_hbr.H
#ifdef __cplusplus
extern "C" {
#endif
#define IOCTL_CCID_ESCAPE
SCARD_CTL_CODE (0xDAC)
#define CCID_GET_848KBPS_STATUS
0xFF9D
#define CCID_SET_848KBPS_ON
0x019D
#define CCID_SET_848KBPS_OFF
0x009D
#define MINTIMEOUT
300
#ifdef __cplusplus
}
#endif
File Name : T_hbr.CPP
#include <windows.h>