|
|
static int | CHANNEL_MAP_seeker (const void *el, const void *key) |
| |
|
static int | SCONTEXTMAP_seeker (const void *el, const void *key) |
| |
| static LONG | SCardAddContext (SCARDCONTEXT hContext, DWORD dwClientID) |
| | Functions for managing instances of SCardEstablishContext() These functions keep track of Context handles and associate the blocking variable contextBlockStatus to an hContext. More...
|
| |
| static SCONTEXTMAP * | SCardGetAndLockContext (SCARDCONTEXT hContext) |
| | Get the SCONTEXTMAP * from the Application Context vector _psContextMap for the passed context. More...
|
| |
| static SCONTEXTMAP * | SCardGetContextTH (SCARDCONTEXT hContext) |
| | Get the address from the Application Context list _psContextMap for the passed context. More...
|
| |
| static void | SCardRemoveContext (SCARDCONTEXT hContext) |
| | Removes an Application Context from a control vector. More...
|
| |
|
static void | SCardCleanContext (SCONTEXTMAP *) |
| |
|
static LONG | SCardAddHandle (SCARDHANDLE, SCONTEXTMAP *, LPCSTR) |
| |
|
static LONG | SCardGetContextChannelAndLockFromHandle (SCARDHANDLE, SCONTEXTMAP **, CHANNEL_MAP **) |
| |
|
static LONG | SCardGetContextAndChannelFromHandleTH (SCARDHANDLE, SCONTEXTMAP **, CHANNEL_MAP **) |
| |
|
static void | SCardRemoveHandle (SCARDHANDLE) |
| |
|
static LONG | SCardGetSetAttrib (SCARDHANDLE hCard, int command, DWORD dwAttrId, LPBYTE pbAttr, LPDWORD pcbAttrLen) |
| |
|
static LONG | getReaderEvents (SCONTEXTMAP *currentContextMap, int *readerEvents) |
| |
|
static LONG | getReaderStates (SCONTEXTMAP *currentContextMap) |
| |
|
static LONG | getReaderStatesAndRegisterForEvents (SCONTEXTMAP *currentContextMap) |
| |
|
static LONG | unregisterFromEvents (SCONTEXTMAP *currentContextMap) |
| |
| static void | SCardLockThread (void) |
| | Locks a mutex so another thread must wait to use this function. More...
|
| |
| static void | SCardUnlockThread (void) |
| | Unlocks a mutex so another thread may use the client. More...
|
| |
| static bool | SCardGetContextValidity (SCARDCONTEXT hContext) |
| | Tell if a context index from the Application Context vector _psContextMap is valid or not. More...
|
| |
| static LONG | SCardEstablishContextTH (DWORD dwScope, LPCVOID pvReserved1, LPCVOID pvReserved2, LPSCARDCONTEXT phContext) |
| | Creates a communication context to the PC/SC Resource Manager. More...
|
| |
| LONG | SCardEstablishContext (DWORD dwScope, LPCVOID pvReserved1, LPCVOID pvReserved2, LPSCARDCONTEXT phContext) |
| | Creates an Application Context to the PC/SC Resource Manager. More...
|
| |
|
static DESTRUCTOR void | destructor (void) |
| |
|
static void | init_lib (void) |
| |
| LONG | SCardReleaseContext (SCARDCONTEXT hContext) |
| | Destroys a communication context to the PC/SC Resource Manager. More...
|
| |
| LONG | SCardConnect (SCARDCONTEXT hContext, LPCSTR szReader, DWORD dwShareMode, DWORD dwPreferredProtocols, LPSCARDHANDLE phCard, LPDWORD pdwActiveProtocol) |
| | Establishes a connection to the reader specified in * szReader. More...
|
| |
| LONG | SCardReconnect (SCARDHANDLE hCard, DWORD dwShareMode, DWORD dwPreferredProtocols, DWORD dwInitialization, LPDWORD pdwActiveProtocol) |
| | Reestablishes a connection to a reader that was previously connected to using SCardConnect(). More...
|
| |
| LONG | SCardDisconnect (SCARDHANDLE hCard, DWORD dwDisposition) |
| | Terminates a connection made through SCardConnect(). More...
|
| |
| LONG | SCardBeginTransaction (SCARDHANDLE hCard) |
| | Establishes a temporary exclusive access mode for doing a series of commands in a transaction. More...
|
| |
| LONG | SCardEndTransaction (SCARDHANDLE hCard, DWORD dwDisposition) |
| | Ends a previously begun transaction. More...
|
| |
| LONG | SCardStatus (SCARDHANDLE hCard, LPSTR szReaderName, LPDWORD pcchReaderLen, LPDWORD pdwState, LPDWORD pdwProtocol, LPBYTE pbAtr, LPDWORD pcbAtrLen) |
| | Returns the current status of the reader connected to by hCard. More...
|
| |
| LONG | SCardGetStatusChange (SCARDCONTEXT hContext, DWORD dwTimeout, SCARD_READERSTATE *rgReaderStates, DWORD cReaders) |
| | Blocks execution until the current availability of the cards in a specific set of readers changes. More...
|
| |
| LONG | SCardControl (SCARDHANDLE hCard, DWORD dwControlCode, LPCVOID pbSendBuffer, DWORD cbSendLength, LPVOID pbRecvBuffer, DWORD cbRecvLength, LPDWORD lpBytesReturned) |
| | Sends a command directly to the IFD Handler (reader driver) to be processed by the reader. More...
|
| |
| LONG | SCardGetAttrib (SCARDHANDLE hCard, DWORD dwAttrId, LPBYTE pbAttr, LPDWORD pcbAttrLen) |
| | Get an attribute from the IFD Handler (reader driver). More...
|
| |
| LONG | SCardSetAttrib (SCARDHANDLE hCard, DWORD dwAttrId, LPCBYTE pbAttr, DWORD cbAttrLen) |
| | Set an attribute of the IFD Handler. More...
|
| |
| LONG | SCardTransmit (SCARDHANDLE hCard, const SCARD_IO_REQUEST *pioSendPci, LPCBYTE pbSendBuffer, DWORD cbSendLength, SCARD_IO_REQUEST *pioRecvPci, LPBYTE pbRecvBuffer, LPDWORD pcbRecvLength) |
| | Sends an APDU to the smart card contained in the reader connected to by SCardConnect(). More...
|
| |
| LONG | SCardListReaders (SCARDCONTEXT hContext, LPCSTR mszGroups, LPSTR mszReaders, LPDWORD pcchReaders) |
| | Returns a list of currently available readers on the system. More...
|
| |
| LONG | SCardFreeMemory (SCARDCONTEXT hContext, LPCVOID pvMem) |
| | Releases memory that has been returned from the resource manager using the SCARD_AUTOALLOCATE length designator. More...
|
| |
| LONG | SCardListReaderGroups (SCARDCONTEXT hContext, LPSTR mszGroups, LPDWORD pcchGroups) |
| | Returns a list of currently available reader groups on the system. More...
|
| |
| LONG | SCardCancel (SCARDCONTEXT hContext) |
| | Cancels a specific blocking SCardGetStatusChange() function. More...
|
| |
| LONG | SCardIsValidContext (SCARDCONTEXT hContext) |
| | Check if a SCARDCONTEXT is valid. More...
|
| |
| LONG | SCardCheckDaemonAvailability (void) |
| | Checks if the server is running. More...
|
| |