PCSCperl.h | PCSCperl.h | |||
---|---|---|---|---|
skipping to change at line 29 | skipping to change at line 29 | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | * GNU General Public License for more details. | |||
* | * | |||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | |||
* 02111-1307 USA | * 02111-1307 USA | |||
* | * | |||
************************************************************************** ****/ | ************************************************************************** ****/ | |||
/* $Id: PCSCperl.h,v 1.20 2010-08-18 21:25:52 rousseau Exp $ */ | /* $Id: PCSCperl.h,v 1.22 2010-10-27 08:04:20 rousseau Exp $ */ | |||
/************************************************************************** **** | /************************************************************************** **** | |||
* Contains basic definitions for a Perl wrapper to PCSC-lite. The code | * Contains basic definitions for a Perl wrapper to PCSC-lite. The code | |||
* here is meant to be portable to most Unices. It should as well compile | * here is meant to be portable to most Unices. It should as well compile | |||
* under Microsoft Windows without modifications. | * under Microsoft Windows without modifications. | |||
* Most macros in this file help portability. | * Most macros in this file help portability. | |||
*************************************************************************** ***/ | *************************************************************************** ***/ | |||
#ifndef PCSC_PERL | #ifndef PCSC_PERL | |||
#define PCSC_PERL | #define PCSC_PERL | |||
skipping to change at line 155 | skipping to change at line 155 | |||
typedef LONG (WINAPI *TSCardConnect) ( SCARDCONTEXT, LPCTSTR, DWOR D, DWORD, LPSCARDHANDLE, LPDWORD ); | typedef LONG (WINAPI *TSCardConnect) ( SCARDCONTEXT, LPCTSTR, DWOR D, DWORD, LPSCARDHANDLE, LPDWORD ); | |||
typedef LONG (WINAPI *TSCardReconnect) ( SCARDHANDLE, DWORD, DWORD, DWORD, LPDWORD ); | typedef LONG (WINAPI *TSCardReconnect) ( SCARDHANDLE, DWORD, DWORD, DWORD, LPDWORD ); | |||
typedef LONG (WINAPI *TSCardDisconnect) ( SCARDHANDLE, DWORD ); | typedef LONG (WINAPI *TSCardDisconnect) ( SCARDHANDLE, DWORD ); | |||
typedef LONG (WINAPI *TSCardBeginTransaction) ( SCARDHANDLE ); | typedef LONG (WINAPI *TSCardBeginTransaction) ( SCARDHANDLE ); | |||
typedef LONG (WINAPI *TSCardEndTransaction) ( SCARDHANDLE, DWORD ); | typedef LONG (WINAPI *TSCardEndTransaction) ( SCARDHANDLE, DWORD ); | |||
typedef LONG (WINAPI *TSCardTransmit) ( SCARDHANDLE, LPCSCARD_IO_RE QUEST, LPCBYTE, DWORD, LPSCARD_IO_REQUEST, LPBYTE, LPDWORD ); | typedef LONG (WINAPI *TSCardTransmit) ( SCARDHANDLE, LPCSCARD_IO_RE QUEST, LPCBYTE, DWORD, LPSCARD_IO_REQUEST, LPBYTE, LPDWORD ); | |||
typedef LONG (WINAPI *TSCardControl) ( SCARDHANDLE, DWORD, LPCBYTE , DWORD, LPBYTE, DWORD, LPDWORD ); | typedef LONG (WINAPI *TSCardControl) ( SCARDHANDLE, DWORD, LPCBYTE , DWORD, LPBYTE, DWORD, LPDWORD ); | |||
typedef LONG (WINAPI *TSCardStatus) ( SCARDHANDLE, LPTSTR, LPDWOR D, LPDWORD, LPDWORD, LPBYTE, LPDWORD ); | typedef LONG (WINAPI *TSCardStatus) ( SCARDHANDLE, LPTSTR, LPDWOR D, LPDWORD, LPDWORD, LPBYTE, LPDWORD ); | |||
typedef LONG (WINAPI *TSCardGetStatusChange) ( SCARDHANDLE, DWORD, SCARD_R EADERSTATE *, DWORD ); | typedef LONG (WINAPI *TSCardGetStatusChange) ( SCARDHANDLE, DWORD, SCARD_R EADERSTATE *, DWORD ); | |||
typedef LONG (WINAPI *TSCardCancel) ( SCARDCONTEXT ); | typedef LONG (WINAPI *TSCardCancel) ( SCARDCONTEXT ); | |||
typedef LONG (*TSCardSetTimeout) ( SCARDCONTEXT, DWORD ); | ||||
/* these functions are not used */ | /* these functions are not used */ | |||
/* | /* | |||
LONG SCardCancelTransaction( SCARDHANDLE ); | ||||
LONG SCardListReaderGroups( SCARDCONTEXT, LPSTR, LPDWORD ); | LONG SCardListReaderGroups( SCARDCONTEXT, LPSTR, LPDWORD ); | |||
*/ | */ | |||
/* Declares a variable for any imported variable */ | /* Declares a variable for any imported variable */ | |||
/* static LPSCARD_IO_REQUEST gpioSCardT0Pci; | /* static LPSCARD_IO_REQUEST gpioSCardT0Pci; | |||
static LPSCARD_IO_REQUEST gpioSCardT1Pci; | static LPSCARD_IO_REQUEST gpioSCardT1Pci; | |||
static LPSCARD_IO_REQUEST gpioSCardRawPci; */ | static LPSCARD_IO_REQUEST gpioSCardRawPci; */ | |||
/* Declares a variable for any imported function */ | /* Declares a variable for any imported function */ | |||
static TSCardEstablishContext hEstablishContext = NULL; | static TSCardEstablishContext hEstablishContext = NULL; | |||
skipping to change at line 182 | skipping to change at line 180 | |||
static TSCardConnect hConnect = NULL; | static TSCardConnect hConnect = NULL; | |||
static TSCardReconnect hReconnect = NULL; | static TSCardReconnect hReconnect = NULL; | |||
static TSCardDisconnect hDisconnect = NULL; | static TSCardDisconnect hDisconnect = NULL; | |||
static TSCardBeginTransaction hBeginTransaction = NULL; | static TSCardBeginTransaction hBeginTransaction = NULL; | |||
static TSCardEndTransaction hEndTransaction = NULL; | static TSCardEndTransaction hEndTransaction = NULL; | |||
static TSCardTransmit hTransmit = NULL; | static TSCardTransmit hTransmit = NULL; | |||
static TSCardControl hControl = NULL; | static TSCardControl hControl = NULL; | |||
static TSCardStatus hStatus = NULL; | static TSCardStatus hStatus = NULL; | |||
static TSCardGetStatusChange hGetStatusChange = NULL; | static TSCardGetStatusChange hGetStatusChange = NULL; | |||
static TSCardCancel hCancel = NULL; | static TSCardCancel hCancel = NULL; | |||
static TSCardSetTimeout hSetTimeout = NULL; | ||||
/* Also declares some static variables */ | /* Also declares some static variables */ | |||
static DLL_HANDLE ghDll = NULL; | static DLL_HANDLE ghDll = NULL; | |||
static LONG gnLastError = SCARD_S_SUCCESS; | static LONG gnLastError = SCARD_S_SUCCESS; | |||
/* these functions are not used */ | /* these functions are not used */ | |||
/* | /* | |||
TSCardCancelTransaction hCancelTransaction = NULL; | ||||
TSCardListReaderGroups hListReaderGroups = NULL; | TSCardListReaderGroups hListReaderGroups = NULL; | |||
*/ | */ | |||
#define SCARD_P_ALREADY_CONNECTED 0x22200001 | #define SCARD_P_ALREADY_CONNECTED 0x22200001 | |||
#define SCARD_P_NOT_CONNECTED 0x22200002 | #define SCARD_P_NOT_CONNECTED 0x22200002 | |||
#endif | #endif | |||
/* End of File */ | /* End of File */ | |||
End of changes. 5 change blocks. | ||||
5 lines changed or deleted | 1 lines changed or added | |||