📄 util.cpp
字号:
#include "SCcommand.h"
//debug infromations used printf to console
void DumpBuf ( char * cTitle, char * cBuf, int iBufLen, int iNewLine )
{
int i;
printf ( "%s", cTitle );
for ( i = 0; i < iBufLen; ++i )
{
printf ( "%02X ", cBuf [i] & 0x00FF );
}
printf ( "\n" );
if ( iNewLine ) printf ( "\n" );
}
//check response code SW12 is correctly?
ProcessSW ( BYTE * pRAPDU, DWORD dwRAPDULen )
{
BYTE _btSW1 = 0;
BYTE _btSW2 = 0;
_btSW1 = pRAPDU [ dwRAPDULen - 2 ];
_btSW2 = pRAPDU [ dwRAPDULen - 1 ];
if ( (_btSW1 == ((BYTE) 0x61)) || (_btSW1 == ((BYTE) 0x90)) )
return ( TRUE );
return ( FALSE );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -