FreeRDP
include/winpr/smartcard.h File Reference
#include <winpr/platform.h>
#include <winpr/winpr.h>
#include <winpr/wtypes.h>
#include <winpr/io.h>
#include <winpr/error.h>
This graph shows which files directly or indirectly include this file:

Data Structures

struct  SCARD_IO_REQUEST
 
struct  SCARD_T0_COMMAND
 
struct  SCARD_T0_REQUEST
 
struct  SCARD_T1_REQUEST
 
struct  SCARD_READERSTATEA
 
struct  SCARD_READERSTATEW
 
struct  SCARD_ATRMASK
 
struct  OPENCARD_SEARCH_CRITERIAA
 
struct  OPENCARD_SEARCH_CRITERIAW
 
struct  OPENCARDNAME_EXA
 
struct  OPENCARDNAME_EXW
 
struct  READER_SEL_REQUEST
 
struct  READER_SEL_RESPONSE
 
struct  OPENCARDNAMEA
 
struct  OPENCARDNAMEW
 
struct  SCardApiFunctionTable
 

Macros

#define _WINSCARD_H_   /* do not include winscard.h */
 
#define SCARD_S_SUCCESS   NO_ERROR
 
#define SCARD_F_INTERNAL_ERROR   -2146435071l
 
#define SCARD_E_CANCELLED   -2146435070l
 
#define SCARD_E_INVALID_HANDLE   -2146435069l
 
#define SCARD_E_INVALID_PARAMETER   -2146435068l
 
#define SCARD_E_INVALID_TARGET   -2146435067l
 
#define SCARD_E_NO_MEMORY   -2146435066l
 
#define SCARD_F_WAITED_TOO_LONG   -2146435065l
 
#define SCARD_E_INSUFFICIENT_BUFFER   -2146435064l
 
#define SCARD_E_UNKNOWN_READER   -2146435063l
 
#define SCARD_E_TIMEOUT   -2146435062l
 
#define SCARD_E_SHARING_VIOLATION   -2146435061l
 
#define SCARD_E_NO_SMARTCARD   -2146435060l
 
#define SCARD_E_UNKNOWN_CARD   -2146435059l
 
#define SCARD_E_CANT_DISPOSE   -2146435058l
 
#define SCARD_E_PROTO_MISMATCH   -2146435057l
 
#define SCARD_E_NOT_READY   -2146435056l
 
#define SCARD_E_INVALID_VALUE   -2146435055l
 
#define SCARD_E_SYSTEM_CANCELLED   -2146435054l
 
#define SCARD_F_COMM_ERROR   -2146435053l
 
#define SCARD_F_UNKNOWN_ERROR   -2146435052l
 
#define SCARD_E_INVALID_ATR   -2146435051l
 
#define SCARD_E_NOT_TRANSACTED   -2146435050l
 
#define SCARD_E_READER_UNAVAILABLE   -2146435049l
 
#define SCARD_P_SHUTDOWN   -2146435048l
 
#define SCARD_E_PCI_TOO_SMALL   -2146435047l
 
#define SCARD_E_READER_UNSUPPORTED   -2146435046l
 
#define SCARD_E_DUPLICATE_READER   -2146435045l
 
#define SCARD_E_CARD_UNSUPPORTED   -2146435044l
 
#define SCARD_E_NO_SERVICE   -2146435043l
 
#define SCARD_E_SERVICE_STOPPED   -2146435042l
 
#define SCARD_E_UNEXPECTED   -2146435041l
 
#define SCARD_E_ICC_INSTALLATION   -2146435040l
 
#define SCARD_E_ICC_CREATEORDER   -2146435039l
 
#define SCARD_E_UNSUPPORTED_FEATURE   -2146435038l
 
#define SCARD_E_DIR_NOT_FOUND   -2146435037l
 
#define SCARD_E_FILE_NOT_FOUND   -2146435036l
 
#define SCARD_E_NO_DIR   -2146435035l
 
#define SCARD_E_NO_FILE   -2146435034l
 
#define SCARD_E_NO_ACCESS   -2146435033l
 
#define SCARD_E_WRITE_TOO_MANY   -2146435032l
 
#define SCARD_E_BAD_SEEK   -2146435031l
 
#define SCARD_E_INVALID_CHV   -2146435030l
 
#define SCARD_E_UNKNOWN_RES_MNG   -2146435029l
 
#define SCARD_E_NO_SUCH_CERTIFICATE   -2146435028l
 
#define SCARD_E_CERTIFICATE_UNAVAILABLE   -2146435027l
 
#define SCARD_E_NO_READERS_AVAILABLE   -2146435026l
 
#define SCARD_E_COMM_DATA_LOST   -2146435025l
 
#define SCARD_E_NO_KEY_CONTAINER   -2146435024l
 
#define SCARD_E_SERVER_TOO_BUSY   -2146435023l
 
#define SCARD_E_PIN_CACHE_EXPIRED   -2146435022l
 
#define SCARD_E_NO_PIN_CACHE   -2146435021l
 
#define SCARD_E_READ_ONLY_CARD   -2146435020l
 
#define SCARD_W_UNSUPPORTED_CARD   -2146434971l
 
#define SCARD_W_UNRESPONSIVE_CARD   -2146434970l
 
#define SCARD_W_UNPOWERED_CARD   -2146434969l
 
#define SCARD_W_RESET_CARD   -2146434968l
 
#define SCARD_W_REMOVED_CARD   -2146434967l
 
#define SCARD_W_SECURITY_VIOLATION   -2146434966l
 
#define SCARD_W_WRONG_CHV   -2146434965l
 
#define SCARD_W_CHV_BLOCKED   -2146434964l
 
#define SCARD_W_EOF   -2146434963l
 
#define SCARD_W_CANCELLED_BY_USER   -2146434962l
 
#define SCARD_W_CARD_NOT_AUTHENTICATED   -2146434961l
 
#define SCARD_W_CACHE_ITEM_NOT_FOUND   -2146434960l
 
#define SCARD_W_CACHE_ITEM_STALE   -2146434959l
 
#define SCARD_W_CACHE_ITEM_TOO_BIG   -2146434958l
 
#define SCARD_ATR_LENGTH   33
 
#define SCARD_PROTOCOL_UNDEFINED   0x00000000u
 
#define SCARD_PROTOCOL_T0   0x00000001u
 
#define SCARD_PROTOCOL_T1   0x00000002u
 
#define SCARD_PROTOCOL_RAW   0x00010000u
 
#define SCARD_PROTOCOL_Tx   (SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1)
 
#define SCARD_PROTOCOL_DEFAULT   0x80000000u
 
#define SCARD_PROTOCOL_OPTIMAL   0x00000000u
 
#define SCARD_POWER_DOWN   0
 
#define SCARD_COLD_RESET   1
 
#define SCARD_WARM_RESET   2
 
#define SCARD_CTL_CODE(code)    CTL_CODE(FILE_DEVICE_SMARTCARD, (code), METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define IOCTL_SMARTCARD_POWER   SCARD_CTL_CODE(1)
 
#define IOCTL_SMARTCARD_GET_ATTRIBUTE   SCARD_CTL_CODE(2)
 
#define IOCTL_SMARTCARD_SET_ATTRIBUTE   SCARD_CTL_CODE(3)
 
#define IOCTL_SMARTCARD_CONFISCATE   SCARD_CTL_CODE(4)
 
#define IOCTL_SMARTCARD_TRANSMIT   SCARD_CTL_CODE(5)
 
#define IOCTL_SMARTCARD_EJECT   SCARD_CTL_CODE(6)
 
#define IOCTL_SMARTCARD_SWALLOW   SCARD_CTL_CODE(7)
 
#define IOCTL_SMARTCARD_IS_PRESENT   SCARD_CTL_CODE(10)
 
#define IOCTL_SMARTCARD_IS_ABSENT   SCARD_CTL_CODE(11)
 
#define IOCTL_SMARTCARD_SET_PROTOCOL   SCARD_CTL_CODE(12)
 
#define IOCTL_SMARTCARD_GET_STATE   SCARD_CTL_CODE(14)
 
#define IOCTL_SMARTCARD_GET_LAST_ERROR   SCARD_CTL_CODE(15)
 
#define IOCTL_SMARTCARD_GET_PERF_CNTR   SCARD_CTL_CODE(16)
 
#define IOCTL_SMARTCARD_GET_FEATURE_REQUEST   SCARD_CTL_CODE(3400)
 
#define MAXIMUM_ATTR_STRING_LENGTH   32
 
#define MAXIMUM_SMARTCARD_READERS   10
 
#define SCARD_ATTR_VALUE(Class, Tag)   ((((ULONG)(Class)) << 16) | ((ULONG)(Tag)))
 
#define SCARD_CLASS_VENDOR_INFO   1
 
#define SCARD_CLASS_COMMUNICATIONS   2
 
#define SCARD_CLASS_PROTOCOL   3
 
#define SCARD_CLASS_POWER_MGMT   4
 
#define SCARD_CLASS_SECURITY   5
 
#define SCARD_CLASS_MECHANICAL   6
 
#define SCARD_CLASS_VENDOR_DEFINED   7
 
#define SCARD_CLASS_IFD_PROTOCOL   8
 
#define SCARD_CLASS_ICC_STATE   9
 
#define SCARD_CLASS_PERF   0x7FFE
 
#define SCARD_CLASS_SYSTEM   0x7FFF
 
#define SCARD_ATTR_VENDOR_NAME   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0100)
 
#define SCARD_ATTR_VENDOR_IFD_TYPE   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0101)
 
#define SCARD_ATTR_VENDOR_IFD_VERSION   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0102)
 
#define SCARD_ATTR_VENDOR_IFD_SERIAL_NO   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0103)
 
#define SCARD_ATTR_CHANNEL_ID   SCARD_ATTR_VALUE(SCARD_CLASS_COMMUNICATIONS, 0x0110)
 
#define SCARD_ATTR_PROTOCOL_TYPES   SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0120)
 
#define SCARD_ATTR_DEFAULT_CLK   SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0121)
 
#define SCARD_ATTR_MAX_CLK   SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0122)
 
#define SCARD_ATTR_DEFAULT_DATA_RATE   SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0123)
 
#define SCARD_ATTR_MAX_DATA_RATE   SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0124)
 
#define SCARD_ATTR_MAX_IFSD   SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0125)
 
#define SCARD_ATTR_POWER_MGMT_SUPPORT   SCARD_ATTR_VALUE(SCARD_CLASS_POWER_MGMT, 0x0131)
 
#define SCARD_ATTR_USER_TO_CARD_AUTH_DEVICE   SCARD_ATTR_VALUE(SCARD_CLASS_SECURITY, 0x0140)
 
#define SCARD_ATTR_USER_AUTH_INPUT_DEVICE   SCARD_ATTR_VALUE(SCARD_CLASS_SECURITY, 0x0142)
 
#define SCARD_ATTR_CHARACTERISTICS   SCARD_ATTR_VALUE(SCARD_CLASS_MECHANICAL, 0x0150)
 
#define SCARD_ATTR_CURRENT_PROTOCOL_TYPE   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0201)
 
#define SCARD_ATTR_CURRENT_CLK   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0202)
 
#define SCARD_ATTR_CURRENT_F   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0203)
 
#define SCARD_ATTR_CURRENT_D   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0204)
 
#define SCARD_ATTR_CURRENT_N   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0205)
 
#define SCARD_ATTR_CURRENT_W   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0206)
 
#define SCARD_ATTR_CURRENT_IFSC   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0207)
 
#define SCARD_ATTR_CURRENT_IFSD   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0208)
 
#define SCARD_ATTR_CURRENT_BWT   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0209)
 
#define SCARD_ATTR_CURRENT_CWT   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x020a)
 
#define SCARD_ATTR_CURRENT_EBC_ENCODING   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x020b)
 
#define SCARD_ATTR_EXTENDED_BWT   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x020c)
 
#define SCARD_ATTR_ICC_PRESENCE   SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0300)
 
#define SCARD_ATTR_ICC_INTERFACE_STATUS   SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0301)
 
#define SCARD_ATTR_CURRENT_IO_STATE   SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0302)
 
#define SCARD_ATTR_ATR_STRING   SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0303)
 
#define SCARD_ATTR_ICC_TYPE_PER_ATR   SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0304)
 
#define SCARD_ATTR_ESC_RESET   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA000)
 
#define SCARD_ATTR_ESC_CANCEL   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA003)
 
#define SCARD_ATTR_ESC_AUTHREQUEST   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA005)
 
#define SCARD_ATTR_MAXINPUT   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA007)
 
#define SCARD_ATTR_DEVICE_UNIT   SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0001)
 
#define SCARD_ATTR_DEVICE_IN_USE   SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0002)
 
#define SCARD_ATTR_DEVICE_FRIENDLY_NAME_A   SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0003)
 
#define SCARD_ATTR_DEVICE_SYSTEM_NAME_A   SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0004)
 
#define SCARD_ATTR_DEVICE_FRIENDLY_NAME_W   SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0005)
 
#define SCARD_ATTR_DEVICE_SYSTEM_NAME_W   SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0006)
 
#define SCARD_ATTR_SUPRESS_T1_IFS_REQUEST   SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0007)
 
#define SCARD_PERF_NUM_TRANSMISSIONS   SCARD_ATTR_VALUE(SCARD_CLASS_PERF, 0x0001)
 
#define SCARD_PERF_BYTES_TRANSMITTED   SCARD_ATTR_VALUE(SCARD_CLASS_PERF, 0x0002)
 
#define SCARD_PERF_TRANSMISSION_TIME   SCARD_ATTR_VALUE(SCARD_CLASS_PERF, 0x0003)
 
#define SCARD_ATTR_DEVICE_FRIENDLY_NAME   SCARD_ATTR_DEVICE_FRIENDLY_NAME_A
 
#define SCARD_ATTR_DEVICE_SYSTEM_NAME   SCARD_ATTR_DEVICE_SYSTEM_NAME_A
 
#define SCARD_T0_HEADER_LENGTH   7
 
#define SCARD_T0_CMD_LENGTH   5
 
#define SCARD_T1_PROLOGUE_LENGTH   3
 
#define SCARD_T1_EPILOGUE_LENGTH   2
 
#define SCARD_T1_MAX_IFS   254
 
#define SCARD_UNKNOWN   0
 
#define SCARD_ABSENT   1
 
#define SCARD_PRESENT   2
 
#define SCARD_SWALLOWED   3
 
#define SCARD_POWERED   4
 
#define SCARD_NEGOTIABLE   5
 
#define SCARD_SPECIFIC   6
 
#define SCARD_READER_SWALLOWS   0x00000001
 
#define SCARD_READER_EJECTS   0x00000002
 
#define SCARD_READER_CONFISCATES   0x00000004
 
#define SCARD_READER_TYPE_SERIAL   0x01
 
#define SCARD_READER_TYPE_PARALELL   0x02
 
#define SCARD_READER_TYPE_KEYBOARD   0x04
 
#define SCARD_READER_TYPE_SCSI   0x08
 
#define SCARD_READER_TYPE_IDE   0x10
 
#define SCARD_READER_TYPE_USB   0x20
 
#define SCARD_READER_TYPE_PCMCIA   0x40
 
#define SCARD_READER_TYPE_TPM   0x80
 
#define SCARD_READER_TYPE_NFC   0x100
 
#define SCARD_READER_TYPE_UICC   0x200
 
#define SCARD_READER_TYPE_VENDOR   0xF0
 
#define WINSCARDAPI   WINPR_API
 
#define SCARD_AUTOALLOCATE   (DWORD)(-1)
 
#define SCARD_SCOPE_USER   0
 
#define SCARD_SCOPE_TERMINAL   1
 
#define SCARD_SCOPE_SYSTEM   2
 
#define SCARD_STATE_UNAWARE   0x00000000
 
#define SCARD_STATE_IGNORE   0x00000001
 
#define SCARD_STATE_CHANGED   0x00000002
 
#define SCARD_STATE_UNKNOWN   0x00000004
 
#define SCARD_STATE_UNAVAILABLE   0x00000008
 
#define SCARD_STATE_EMPTY   0x00000010
 
#define SCARD_STATE_PRESENT   0x00000020
 
#define SCARD_STATE_ATRMATCH   0x00000040
 
#define SCARD_STATE_EXCLUSIVE   0x00000080
 
#define SCARD_STATE_INUSE   0x00000100
 
#define SCARD_STATE_MUTE   0x00000200
 
#define SCARD_STATE_UNPOWERED   0x00000400
 
#define SCARD_SHARE_EXCLUSIVE   1
 
#define SCARD_SHARE_SHARED   2
 
#define SCARD_SHARE_DIRECT   3
 
#define SCARD_LEAVE_CARD   0
 
#define SCARD_RESET_CARD   1
 
#define SCARD_UNPOWER_CARD   2
 
#define SCARD_EJECT_CARD   3
 
#define SC_DLG_MINIMAL_UI   0x01
 
#define SC_DLG_NO_UI   0x02
 
#define SC_DLG_FORCE_UI   0x04
 
#define SCERR_NOCARDNAME   0x4000
 
#define SCERR_NOGUIDS   0x8000
 
#define SCARD_READER_SEL_AUTH_PACKAGE   ((DWORD)-629)
 
#define SCARD_AUDIT_CHV_FAILURE   0x0
 
#define SCARD_AUDIT_CHV_SUCCESS   0x1
 
#define SCardListCardTypes   SCardListCards
 
#define PCSCardIntroduceCardType(hContext, szCardName, pbAtr, pbAtrMask, cbAtrLen, pguidPrimaryProvider, rgguidInterfaces, dwInterfaceCount)
 
#define SCardGetReaderCapabilities   SCardGetAttrib
 
#define SCardSetReaderCapabilities   SCardSetAttrib
 
#define OPENCARDNAMEA_EX   OPENCARDNAME_EXA
 
#define OPENCARDNAMEW_EX   OPENCARDNAME_EXW
 
#define POPENCARDNAMEA_EX   POPENCARDNAME_EXA
 
#define POPENCARDNAMEW_EX   POPENCARDNAME_EXW
 
#define LPOPENCARDNAMEA_EX   LPOPENCARDNAME_EXA
 
#define LPOPENCARDNAMEW_EX   LPOPENCARDNAME_EXW
 
#define LPOCNCONNPROC   LPOCNCONNPROCA
 
#define SCARD_READERSTATE   SCARD_READERSTATEA
 
#define PSCARD_READERSTATE   PSCARD_READERSTATEA
 
#define LPSCARD_READERSTATE   LPSCARD_READERSTATEA
 
#define OPENCARD_SEARCH_CRITERIA   OPENCARD_SEARCH_CRITERIAA
 
#define LOPENCARD_SEARCH_CRITERIA   LOPENCARD_SEARCH_CRITERIAA
 
#define LPOPENCARD_SEARCH_CRITERIA   LPOPENCARD_SEARCH_CRITERIAA
 
#define OPENCARDNAME_EX   OPENCARDNAME_EXA
 
#define LOPENCARDNAME_EX   LOPENCARDNAME_EXA
 
#define LPOPENCARDNAME_EX   LPOPENCARDNAME_EXA
 
#define OPENCARDNAME   OPENCARDNAMEA
 
#define LOPENCARDNAME   LOPENCARDNAMEA
 
#define LPOPENCARDNAME   LPOPENCARDNAMEA
 
#define SCARD_PCI_T0   (&g_rgSCardT0Pci)
 
#define SCARD_PCI_T1   (&g_rgSCardT1Pci)
 
#define SCARD_PCI_RAW   (&g_rgSCardRawPci)
 
#define SCardListReaderGroups   SCardListReaderGroupsA
 
#define SCardListReaders   SCardListReadersA
 
#define SCardListCards   SCardListCardsA
 
#define SCardListInterfaces   SCardListInterfacesA
 
#define SCardGetProviderId   SCardGetProviderIdA
 
#define SCardGetCardTypeProviderName   SCardGetCardTypeProviderNameA
 
#define SCardIntroduceReaderGroup   SCardIntroduceReaderGroupA
 
#define SCardForgetReaderGroup   SCardForgetReaderGroupA
 
#define SCardIntroduceReader   SCardIntroduceReaderA
 
#define SCardForgetReader   SCardForgetReaderA
 
#define SCardAddReaderToGroup   SCardAddReaderToGroupA
 
#define SCardRemoveReaderFromGroup   SCardRemoveReaderFromGroupA
 
#define SCardIntroduceCardType   SCardIntroduceCardTypeA
 
#define SCardSetCardTypeProviderName   SCardSetCardTypeProviderNameA
 
#define SCardForgetCardType   SCardForgetCardTypeA
 
#define SCardLocateCards   SCardLocateCardsA
 
#define SCardLocateCardsByATR   SCardLocateCardsByATRA
 
#define SCardGetStatusChange   SCardGetStatusChangeA
 
#define SCardConnect   SCardConnectA
 
#define SCardStatus   SCardStatusA
 
#define SCardUIDlgSelectCard   SCardUIDlgSelectCardA
 
#define GetOpenCardName   GetOpenCardNameA
 
#define SCardReadCache   SCardReadCacheA
 
#define SCardWriteCache   SCardWriteCacheA
 
#define SCardGetReaderIcon   SCardGetReaderIconA
 
#define SCardGetDeviceTypeId   SCardGetDeviceTypeIdA
 
#define SCardGetReaderDeviceInstanceId   SCardGetReaderDeviceInstanceIdA
 
#define SCardListReadersWithDeviceInstanceId   SCardListReadersWithDeviceInstanceIdA
 

Typedefs

typedef struct SCARD_IO_REQUESTPSCARD_IO_REQUEST
 
typedef struct SCARD_IO_REQUESTLPSCARD_IO_REQUEST
 
typedef const SCARD_IO_REQUESTLPCSCARD_IO_REQUEST
 
typedef struct SCARD_T0_COMMANDLPSCARD_T0_COMMAND
 
typedef SCARD_T0_REQUESTPSCARD_T0_REQUEST
 
typedef SCARD_T0_REQUESTLPSCARD_T0_REQUEST
 
typedef SCARD_T1_REQUESTPSCARD_T1_REQUEST
 
typedef SCARD_T1_REQUESTLPSCARD_T1_REQUEST
 
typedef ULONG_PTR SCARDCONTEXT
 
typedef SCARDCONTEXTPSCARDCONTEXT
 
typedef SCARDCONTEXTLPSCARDCONTEXT
 
typedef ULONG_PTR SCARDHANDLE
 
typedef SCARDHANDLEPSCARDHANDLE
 
typedef SCARDHANDLELPSCARDHANDLE
 
typedef SCARDHANDLE(WINAPI * LPOCNCONNPROCA) (SCARDCONTEXT hSCardContext, LPSTR szReader, LPSTR mszCards, PVOID pvUserData)
 
typedef SCARDHANDLE(WINAPI * LPOCNCONNPROCW) (SCARDCONTEXT hSCardContext, LPWSTR szReader, LPWSTR mszCards, PVOID pvUserData)
 
typedef BOOL(WINAPI * LPOCNCHKPROC) (SCARDCONTEXT hSCardContext, SCARDHANDLE hCard, PVOID pvUserData)
 
typedef void(WINAPI * LPOCNDSCPROC) (SCARDCONTEXT hSCardContext, SCARDHANDLE hCard, PVOID pvUserData)
 
typedef struct SCARD_READERSTATEAPSCARD_READERSTATEA
 
typedef struct SCARD_READERSTATEALPSCARD_READERSTATEA
 
typedef struct SCARD_READERSTATEWPSCARD_READERSTATEW
 
typedef struct SCARD_READERSTATEWLPSCARD_READERSTATEW
 
typedef struct SCARD_ATRMASKPSCARD_ATRMASK
 
typedef struct SCARD_ATRMASKLPSCARD_ATRMASK
 
typedef struct OPENCARD_SEARCH_CRITERIAAPOPENCARD_SEARCH_CRITERIAA
 
typedef struct OPENCARD_SEARCH_CRITERIAALPOPENCARD_SEARCH_CRITERIAA
 
typedef struct OPENCARD_SEARCH_CRITERIAWPOPENCARD_SEARCH_CRITERIAW
 
typedef struct OPENCARD_SEARCH_CRITERIAWLPOPENCARD_SEARCH_CRITERIAW
 
typedef struct OPENCARDNAME_EXAPOPENCARDNAME_EXA
 
typedef struct OPENCARDNAME_EXALPOPENCARDNAME_EXA
 
typedef struct OPENCARDNAME_EXWPOPENCARDNAME_EXW
 
typedef struct OPENCARDNAME_EXWLPOPENCARDNAME_EXW
 
typedef struct READER_SEL_REQUESTPREADER_SEL_REQUEST
 
typedef struct READER_SEL_RESPONSEPREADER_SEL_RESPONSE
 
typedef struct OPENCARDNAMEAPOPENCARDNAMEA
 
typedef struct OPENCARDNAMEALPOPENCARDNAMEA
 
typedef struct OPENCARDNAMEWPOPENCARDNAMEW
 
typedef struct OPENCARDNAMEWLPOPENCARDNAMEW
 
typedef LONG(WINAPI * fnSCardEstablishContext) (DWORD dwScope, LPCVOID pvReserved1, LPCVOID pvReserved2, LPSCARDCONTEXT phContext)
 
typedef LONG(WINAPI * fnSCardReleaseContext) (SCARDCONTEXT hContext)
 
typedef LONG(WINAPI * fnSCardIsValidContext) (SCARDCONTEXT hContext)
 
typedef LONG(WINAPI * fnSCardListReaderGroupsA) (SCARDCONTEXT hContext, LPSTR mszGroups, LPDWORD pcchGroups)
 
typedef LONG(WINAPI * fnSCardListReaderGroupsW) (SCARDCONTEXT hContext, LPWSTR mszGroups, LPDWORD pcchGroups)
 
typedef LONG(WINAPI * fnSCardListReadersA) (SCARDCONTEXT hContext, LPCSTR mszGroups, LPSTR mszReaders, LPDWORD pcchReaders)
 
typedef LONG(WINAPI * fnSCardListReadersW) (SCARDCONTEXT hContext, LPCWSTR mszGroups, LPWSTR mszReaders, LPDWORD pcchReaders)
 
typedef LONG(WINAPI * fnSCardListCardsA) (SCARDCONTEXT hContext, LPCBYTE pbAtr, LPCGUID rgquidInterfaces, DWORD cguidInterfaceCount, CHAR *mszCards, LPDWORD pcchCards)
 
typedef LONG(WINAPI * fnSCardListCardsW) (SCARDCONTEXT hContext, LPCBYTE pbAtr, LPCGUID rgquidInterfaces, DWORD cguidInterfaceCount, WCHAR *mszCards, LPDWORD pcchCards)
 
typedef LONG(WINAPI * fnSCardListInterfacesA) (SCARDCONTEXT hContext, LPCSTR szCard, LPGUID pguidInterfaces, LPDWORD pcguidInterfaces)
 
typedef LONG(WINAPI * fnSCardListInterfacesW) (SCARDCONTEXT hContext, LPCWSTR szCard, LPGUID pguidInterfaces, LPDWORD pcguidInterfaces)
 
typedef LONG(WINAPI * fnSCardGetProviderIdA) (SCARDCONTEXT hContext, LPCSTR szCard, LPGUID pguidProviderId)
 
typedef LONG(WINAPI * fnSCardGetProviderIdW) (SCARDCONTEXT hContext, LPCWSTR szCard, LPGUID pguidProviderId)
 
typedef LONG(WINAPI * fnSCardGetCardTypeProviderNameA) (SCARDCONTEXT hContext, LPCSTR szCardName, DWORD dwProviderId, CHAR *szProvider, LPDWORD pcchProvider)
 
typedef LONG(WINAPI * fnSCardGetCardTypeProviderNameW) (SCARDCONTEXT hContext, LPCWSTR szCardName, DWORD dwProviderId, WCHAR *szProvider, LPDWORD pcchProvider)
 
typedef LONG(WINAPI * fnSCardIntroduceReaderGroupA) (SCARDCONTEXT hContext, LPCSTR szGroupName)
 
typedef LONG(WINAPI * fnSCardIntroduceReaderGroupW) (SCARDCONTEXT hContext, LPCWSTR szGroupName)
 
typedef LONG(WINAPI * fnSCardForgetReaderGroupA) (SCARDCONTEXT hContext, LPCSTR szGroupName)
 
typedef LONG(WINAPI * fnSCardForgetReaderGroupW) (SCARDCONTEXT hContext, LPCWSTR szGroupName)
 
typedef LONG(WINAPI * fnSCardIntroduceReaderA) (SCARDCONTEXT hContext, LPCSTR szReaderName, LPCSTR szDeviceName)
 
typedef LONG(WINAPI * fnSCardIntroduceReaderW) (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPCWSTR szDeviceName)
 
typedef LONG(WINAPI * fnSCardForgetReaderA) (SCARDCONTEXT hContext, LPCSTR szReaderName)
 
typedef LONG(WINAPI * fnSCardForgetReaderW) (SCARDCONTEXT hContext, LPCWSTR szReaderName)
 
typedef LONG(WINAPI * fnSCardAddReaderToGroupA) (SCARDCONTEXT hContext, LPCSTR szReaderName, LPCSTR szGroupName)
 
typedef LONG(WINAPI * fnSCardAddReaderToGroupW) (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPCWSTR szGroupName)
 
typedef LONG(WINAPI * fnSCardRemoveReaderFromGroupA) (SCARDCONTEXT hContext, LPCSTR szReaderName, LPCSTR szGroupName)
 
typedef LONG(WINAPI * fnSCardRemoveReaderFromGroupW) (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPCWSTR szGroupName)
 
typedef LONG(WINAPI * fnSCardIntroduceCardTypeA) (SCARDCONTEXT hContext, LPCSTR szCardName, LPCGUID pguidPrimaryProvider, LPCGUID rgguidInterfaces, DWORD dwInterfaceCount, LPCBYTE pbAtr, LPCBYTE pbAtrMask, DWORD cbAtrLen)
 
typedef LONG(WINAPI * fnSCardIntroduceCardTypeW) (SCARDCONTEXT hContext, LPCWSTR szCardName, LPCGUID pguidPrimaryProvider, LPCGUID rgguidInterfaces, DWORD dwInterfaceCount, LPCBYTE pbAtr, LPCBYTE pbAtrMask, DWORD cbAtrLen)
 
typedef LONG(WINAPI * fnSCardSetCardTypeProviderNameA) (SCARDCONTEXT hContext, LPCSTR szCardName, DWORD dwProviderId, LPCSTR szProvider)
 
typedef LONG(WINAPI * fnSCardSetCardTypeProviderNameW) (SCARDCONTEXT hContext, LPCWSTR szCardName, DWORD dwProviderId, LPCWSTR szProvider)
 
typedef LONG(WINAPI * fnSCardForgetCardTypeA) (SCARDCONTEXT hContext, LPCSTR szCardName)
 
typedef LONG(WINAPI * fnSCardForgetCardTypeW) (SCARDCONTEXT hContext, LPCWSTR szCardName)
 
typedef LONG(WINAPI * fnSCardFreeMemory) (SCARDCONTEXT hContext, LPVOID pvMem)
 
typedef HANDLE(WINAPI * fnSCardAccessStartedEvent) (void)
 
typedef void(WINAPI * fnSCardReleaseStartedEvent) (void)
 
typedef LONG(WINAPI * fnSCardLocateCardsA) (SCARDCONTEXT hContext, LPCSTR mszCards, LPSCARD_READERSTATEA rgReaderStates, DWORD cReaders)
 
typedef LONG(WINAPI * fnSCardLocateCardsW) (SCARDCONTEXT hContext, LPCWSTR mszCards, LPSCARD_READERSTATEW rgReaderStates, DWORD cReaders)
 
typedef LONG(WINAPI * fnSCardLocateCardsByATRA) (SCARDCONTEXT hContext, LPSCARD_ATRMASK rgAtrMasks, DWORD cAtrs, LPSCARD_READERSTATEA rgReaderStates, DWORD cReaders)
 
typedef LONG(WINAPI * fnSCardLocateCardsByATRW) (SCARDCONTEXT hContext, LPSCARD_ATRMASK rgAtrMasks, DWORD cAtrs, LPSCARD_READERSTATEW rgReaderStates, DWORD cReaders)
 
typedef LONG(WINAPI * fnSCardGetStatusChangeA) (SCARDCONTEXT hContext, DWORD dwTimeout, LPSCARD_READERSTATEA rgReaderStates, DWORD cReaders)
 
typedef LONG(WINAPI * fnSCardGetStatusChangeW) (SCARDCONTEXT hContext, DWORD dwTimeout, LPSCARD_READERSTATEW rgReaderStates, DWORD cReaders)
 
typedef LONG(WINAPI * fnSCardCancel) (SCARDCONTEXT hContext)
 
typedef LONG(WINAPI * fnSCardConnectA) (SCARDCONTEXT hContext, LPCSTR szReader, DWORD dwShareMode, DWORD dwPreferredProtocols, LPSCARDHANDLE phCard, LPDWORD pdwActiveProtocol)
 
typedef LONG(WINAPI * fnSCardConnectW) (SCARDCONTEXT hContext, LPCWSTR szReader, DWORD dwShareMode, DWORD dwPreferredProtocols, LPSCARDHANDLE phCard, LPDWORD pdwActiveProtocol)
 
typedef LONG(WINAPI * fnSCardReconnect) (SCARDHANDLE hCard, DWORD dwShareMode, DWORD dwPreferredProtocols, DWORD dwInitialization, LPDWORD pdwActiveProtocol)
 
typedef LONG(WINAPI * fnSCardDisconnect) (SCARDHANDLE hCard, DWORD dwDisposition)
 
typedef LONG(WINAPI * fnSCardBeginTransaction) (SCARDHANDLE hCard)
 
typedef LONG(WINAPI * fnSCardEndTransaction) (SCARDHANDLE hCard, DWORD dwDisposition)
 
typedef LONG(WINAPI * fnSCardCancelTransaction) (SCARDHANDLE hCard)
 
typedef LONG(WINAPI * fnSCardState) (SCARDHANDLE hCard, LPDWORD pdwState, LPDWORD pdwProtocol, LPBYTE pbAtr, LPDWORD pcbAtrLen)
 
typedef LONG(WINAPI * fnSCardStatusA) (SCARDHANDLE hCard, LPSTR mszReaderNames, LPDWORD pcchReaderLen, LPDWORD pdwState, LPDWORD pdwProtocol, LPBYTE pbAtr, LPDWORD pcbAtrLen)
 
typedef LONG(WINAPI * fnSCardStatusW) (SCARDHANDLE hCard, LPWSTR mszReaderNames, LPDWORD pcchReaderLen, LPDWORD pdwState, LPDWORD pdwProtocol, LPBYTE pbAtr, LPDWORD pcbAtrLen)
 
typedef LONG(WINAPI * fnSCardTransmit) (SCARDHANDLE hCard, LPCSCARD_IO_REQUEST pioSendPci, LPCBYTE pbSendBuffer, DWORD cbSendLength, LPSCARD_IO_REQUEST pioRecvPci, LPBYTE pbRecvBuffer, LPDWORD pcbRecvLength)
 
typedef LONG(WINAPI * fnSCardGetTransmitCount) (SCARDHANDLE hCard, LPDWORD pcTransmitCount)
 
typedef LONG(WINAPI * fnSCardControl) (SCARDHANDLE hCard, DWORD dwControlCode, LPCVOID lpInBuffer, DWORD cbInBufferSize, LPVOID lpOutBuffer, DWORD cbOutBufferSize, LPDWORD lpBytesReturned)
 
typedef LONG(WINAPI * fnSCardGetAttrib) (SCARDHANDLE hCard, DWORD dwAttrId, LPBYTE pbAttr, LPDWORD pcbAttrLen)
 
typedef LONG(WINAPI * fnSCardSetAttrib) (SCARDHANDLE hCard, DWORD dwAttrId, LPCBYTE pbAttr, DWORD cbAttrLen)
 
typedef LONG(WINAPI * fnSCardUIDlgSelectCardA) (LPOPENCARDNAMEA_EX pDlgStruc)
 
typedef LONG(WINAPI * fnSCardUIDlgSelectCardW) (LPOPENCARDNAMEW_EX pDlgStruc)
 
typedef LONG(WINAPI * fnGetOpenCardNameA) (LPOPENCARDNAMEA pDlgStruc)
 
typedef LONG(WINAPI * fnGetOpenCardNameW) (LPOPENCARDNAMEW pDlgStruc)
 
typedef LONG(WINAPI * fnSCardDlgExtendedError) (void)
 
typedef LONG(WINAPI * fnSCardReadCacheA) (SCARDCONTEXT hContext, UUID *CardIdentifier, DWORD FreshnessCounter, LPSTR LookupName, PBYTE Data, DWORD *DataLen)
 
typedef LONG(WINAPI * fnSCardReadCacheW) (SCARDCONTEXT hContext, UUID *CardIdentifier, DWORD FreshnessCounter, LPWSTR LookupName, PBYTE Data, DWORD *DataLen)
 
typedef LONG(WINAPI * fnSCardWriteCacheA) (SCARDCONTEXT hContext, UUID *CardIdentifier, DWORD FreshnessCounter, LPSTR LookupName, PBYTE Data, DWORD DataLen)
 
typedef LONG(WINAPI * fnSCardWriteCacheW) (SCARDCONTEXT hContext, UUID *CardIdentifier, DWORD FreshnessCounter, LPWSTR LookupName, PBYTE Data, DWORD DataLen)
 
typedef LONG(WINAPI * fnSCardGetReaderIconA) (SCARDCONTEXT hContext, LPCSTR szReaderName, LPBYTE pbIcon, LPDWORD pcbIcon)
 
typedef LONG(WINAPI * fnSCardGetReaderIconW) (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPBYTE pbIcon, LPDWORD pcbIcon)
 
typedef LONG(WINAPI * fnSCardGetDeviceTypeIdA) (SCARDCONTEXT hContext, LPCSTR szReaderName, LPDWORD pdwDeviceTypeId)
 
typedef LONG(WINAPI * fnSCardGetDeviceTypeIdW) (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPDWORD pdwDeviceTypeId)
 
typedef LONG(WINAPI * fnSCardGetReaderDeviceInstanceIdA) (SCARDCONTEXT hContext, LPCSTR szReaderName, LPSTR szDeviceInstanceId, LPDWORD pcchDeviceInstanceId)
 
typedef LONG(WINAPI * fnSCardGetReaderDeviceInstanceIdW) (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPWSTR szDeviceInstanceId, LPDWORD pcchDeviceInstanceId)
 
typedef LONG(WINAPI * fnSCardListReadersWithDeviceInstanceIdA) (SCARDCONTEXT hContext, LPCSTR szDeviceInstanceId, LPSTR mszReaders, LPDWORD pcchReaders)
 
typedef LONG(WINAPI * fnSCardListReadersWithDeviceInstanceIdW) (SCARDCONTEXT hContext, LPCWSTR szDeviceInstanceId, LPWSTR mszReaders, LPDWORD pcchReaders)
 
typedef LONG(WINAPI * fnSCardAudit) (SCARDCONTEXT hContext, DWORD dwEvent)
 
typedef SCardApiFunctionTablePSCardApiFunctionTable
 

Enumerations

enum  READER_SEL_REQUEST_MATCH_TYPE { RSR_MATCH_TYPE_READER_AND_CONTAINER = 1 , RSR_MATCH_TYPE_SERIAL_NUMBER , RSR_MATCH_TYPE_ALL_CARDS }
 

Functions

WINSCARDAPI LONG WINAPI SCardEstablishContext (DWORD dwScope, LPCVOID pvReserved1, LPCVOID pvReserved2, LPSCARDCONTEXT phContext)
 
WINSCARDAPI LONG WINAPI SCardReleaseContext (SCARDCONTEXT hContext)
 
WINSCARDAPI LONG WINAPI SCardIsValidContext (SCARDCONTEXT hContext)
 
WINSCARDAPI LONG WINAPI SCardListReaderGroupsA (SCARDCONTEXT hContext, LPSTR mszGroups, LPDWORD pcchGroups)
 
WINSCARDAPI LONG WINAPI SCardListReaderGroupsW (SCARDCONTEXT hContext, LPWSTR mszGroups, LPDWORD pcchGroups)
 
WINSCARDAPI LONG WINAPI SCardListReadersA (SCARDCONTEXT hContext, LPCSTR mszGroups, LPSTR mszReaders, LPDWORD pcchReaders)
 
WINSCARDAPI LONG WINAPI SCardListReadersW (SCARDCONTEXT hContext, LPCWSTR mszGroups, LPWSTR mszReaders, LPDWORD pcchReaders)
 
WINSCARDAPI LONG WINAPI SCardListCardsA (SCARDCONTEXT hContext, LPCBYTE pbAtr, LPCGUID rgquidInterfaces, DWORD cguidInterfaceCount, CHAR *mszCards, LPDWORD pcchCards)
 
WINSCARDAPI LONG WINAPI SCardListCardsW (SCARDCONTEXT hContext, LPCBYTE pbAtr, LPCGUID rgquidInterfaces, DWORD cguidInterfaceCount, WCHAR *mszCards, LPDWORD pcchCards)
 
WINSCARDAPI LONG WINAPI SCardListInterfacesA (SCARDCONTEXT hContext, LPCSTR szCard, LPGUID pguidInterfaces, LPDWORD pcguidInterfaces)
 
WINSCARDAPI LONG WINAPI SCardListInterfacesW (SCARDCONTEXT hContext, LPCWSTR szCard, LPGUID pguidInterfaces, LPDWORD pcguidInterfaces)
 
WINSCARDAPI LONG WINAPI SCardGetProviderIdA (SCARDCONTEXT hContext, LPCSTR szCard, LPGUID pguidProviderId)
 
WINSCARDAPI LONG WINAPI SCardGetProviderIdW (SCARDCONTEXT hContext, LPCWSTR szCard, LPGUID pguidProviderId)
 
WINSCARDAPI LONG WINAPI SCardGetCardTypeProviderNameA (SCARDCONTEXT hContext, LPCSTR szCardName, DWORD dwProviderId, CHAR *szProvider, LPDWORD pcchProvider)
 
WINSCARDAPI LONG WINAPI SCardGetCardTypeProviderNameW (SCARDCONTEXT hContext, LPCWSTR szCardName, DWORD dwProviderId, WCHAR *szProvider, LPDWORD pcchProvider)
 
WINSCARDAPI LONG WINAPI SCardIntroduceReaderGroupA (SCARDCONTEXT hContext, LPCSTR szGroupName)
 
WINSCARDAPI LONG WINAPI SCardIntroduceReaderGroupW (SCARDCONTEXT hContext, LPCWSTR szGroupName)
 
WINSCARDAPI LONG WINAPI SCardForgetReaderGroupA (SCARDCONTEXT hContext, LPCSTR szGroupName)
 
WINSCARDAPI LONG WINAPI SCardForgetReaderGroupW (SCARDCONTEXT hContext, LPCWSTR szGroupName)
 
WINSCARDAPI LONG WINAPI SCardIntroduceReaderA (SCARDCONTEXT hContext, LPCSTR szReaderName, LPCSTR szDeviceName)
 
WINSCARDAPI LONG WINAPI SCardIntroduceReaderW (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPCWSTR szDeviceName)
 
WINSCARDAPI LONG WINAPI SCardForgetReaderA (SCARDCONTEXT hContext, LPCSTR szReaderName)
 
WINSCARDAPI LONG WINAPI SCardForgetReaderW (SCARDCONTEXT hContext, LPCWSTR szReaderName)
 
WINSCARDAPI LONG WINAPI SCardAddReaderToGroupA (SCARDCONTEXT hContext, LPCSTR szReaderName, LPCSTR szGroupName)
 
WINSCARDAPI LONG WINAPI SCardAddReaderToGroupW (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPCWSTR szGroupName)
 
WINSCARDAPI LONG WINAPI SCardRemoveReaderFromGroupA (SCARDCONTEXT hContext, LPCSTR szReaderName, LPCSTR szGroupName)
 
WINSCARDAPI LONG WINAPI SCardRemoveReaderFromGroupW (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPCWSTR szGroupName)
 
WINSCARDAPI LONG WINAPI SCardIntroduceCardTypeA (SCARDCONTEXT hContext, LPCSTR szCardName, LPCGUID pguidPrimaryProvider, LPCGUID rgguidInterfaces, DWORD dwInterfaceCount, LPCBYTE pbAtr, LPCBYTE pbAtrMask, DWORD cbAtrLen)
 
WINSCARDAPI LONG WINAPI SCardIntroduceCardTypeW (SCARDCONTEXT hContext, LPCWSTR szCardName, LPCGUID pguidPrimaryProvider, LPCGUID rgguidInterfaces, DWORD dwInterfaceCount, LPCBYTE pbAtr, LPCBYTE pbAtrMask, DWORD cbAtrLen)
 
WINSCARDAPI LONG WINAPI SCardSetCardTypeProviderNameA (SCARDCONTEXT hContext, LPCSTR szCardName, DWORD dwProviderId, LPCSTR szProvider)
 
WINSCARDAPI LONG WINAPI SCardSetCardTypeProviderNameW (SCARDCONTEXT hContext, LPCWSTR szCardName, DWORD dwProviderId, LPCWSTR szProvider)
 
WINSCARDAPI LONG WINAPI SCardForgetCardTypeA (SCARDCONTEXT hContext, LPCSTR szCardName)
 
WINSCARDAPI LONG WINAPI SCardForgetCardTypeW (SCARDCONTEXT hContext, LPCWSTR szCardName)
 
WINSCARDAPI LONG WINAPI SCardFreeMemory (SCARDCONTEXT hContext, LPVOID pvMem)
 
WINSCARDAPI HANDLE WINAPI SCardAccessStartedEvent (void)
 
WINSCARDAPI void WINAPI SCardReleaseStartedEvent (void)
 
WINSCARDAPI LONG WINAPI SCardLocateCardsA (SCARDCONTEXT hContext, LPCSTR mszCards, LPSCARD_READERSTATEA rgReaderStates, DWORD cReaders)
 
WINSCARDAPI LONG WINAPI SCardLocateCardsW (SCARDCONTEXT hContext, LPCWSTR mszCards, LPSCARD_READERSTATEW rgReaderStates, DWORD cReaders)
 
WINSCARDAPI LONG WINAPI SCardLocateCardsByATRA (SCARDCONTEXT hContext, LPSCARD_ATRMASK rgAtrMasks, DWORD cAtrs, LPSCARD_READERSTATEA rgReaderStates, DWORD cReaders)
 
WINSCARDAPI LONG WINAPI SCardLocateCardsByATRW (SCARDCONTEXT hContext, LPSCARD_ATRMASK rgAtrMasks, DWORD cAtrs, LPSCARD_READERSTATEW rgReaderStates, DWORD cReaders)
 
WINSCARDAPI LONG WINAPI SCardGetStatusChangeA (SCARDCONTEXT hContext, DWORD dwTimeout, LPSCARD_READERSTATEA rgReaderStates, DWORD cReaders)
 
WINSCARDAPI LONG WINAPI SCardGetStatusChangeW (SCARDCONTEXT hContext, DWORD dwTimeout, LPSCARD_READERSTATEW rgReaderStates, DWORD cReaders)
 
WINSCARDAPI LONG WINAPI SCardCancel (SCARDCONTEXT hContext)
 
WINSCARDAPI LONG WINAPI SCardConnectA (SCARDCONTEXT hContext, LPCSTR szReader, DWORD dwShareMode, DWORD dwPreferredProtocols, LPSCARDHANDLE phCard, LPDWORD pdwActiveProtocol)
 
WINSCARDAPI LONG WINAPI SCardConnectW (SCARDCONTEXT hContext, LPCWSTR szReader, DWORD dwShareMode, DWORD dwPreferredProtocols, LPSCARDHANDLE phCard, LPDWORD pdwActiveProtocol)
 
WINSCARDAPI LONG WINAPI SCardReconnect (SCARDHANDLE hCard, DWORD dwShareMode, DWORD dwPreferredProtocols, DWORD dwInitialization, LPDWORD pdwActiveProtocol)
 
WINSCARDAPI LONG WINAPI SCardDisconnect (SCARDHANDLE hCard, DWORD dwDisposition)
 
WINSCARDAPI LONG WINAPI SCardBeginTransaction (SCARDHANDLE hCard)
 
WINSCARDAPI LONG WINAPI SCardEndTransaction (SCARDHANDLE hCard, DWORD dwDisposition)
 
WINSCARDAPI LONG WINAPI SCardCancelTransaction (SCARDHANDLE hCard)
 
WINSCARDAPI LONG WINAPI SCardState (SCARDHANDLE hCard, LPDWORD pdwState, LPDWORD pdwProtocol, LPBYTE pbAtr, LPDWORD pcbAtrLen)
 
WINSCARDAPI LONG WINAPI SCardStatusA (SCARDHANDLE hCard, LPSTR mszReaderNames, LPDWORD pcchReaderLen, LPDWORD pdwState, LPDWORD pdwProtocol, LPBYTE pbAtr, LPDWORD pcbAtrLen)
 
WINSCARDAPI LONG WINAPI SCardStatusW (SCARDHANDLE hCard, LPWSTR mszReaderNames, LPDWORD pcchReaderLen, LPDWORD pdwState, LPDWORD pdwProtocol, LPBYTE pbAtr, LPDWORD pcbAtrLen)
 
WINSCARDAPI LONG WINAPI SCardTransmit (SCARDHANDLE hCard, LPCSCARD_IO_REQUEST pioSendPci, LPCBYTE pbSendBuffer, DWORD cbSendLength, LPSCARD_IO_REQUEST pioRecvPci, LPBYTE pbRecvBuffer, LPDWORD pcbRecvLength)
 
WINSCARDAPI LONG WINAPI SCardGetTransmitCount (SCARDHANDLE hCard, LPDWORD pcTransmitCount)
 
WINSCARDAPI LONG WINAPI SCardControl (SCARDHANDLE hCard, DWORD dwControlCode, LPCVOID lpInBuffer, DWORD cbInBufferSize, LPVOID lpOutBuffer, DWORD cbOutBufferSize, LPDWORD lpBytesReturned)
 
WINSCARDAPI LONG WINAPI SCardGetAttrib (SCARDHANDLE hCard, DWORD dwAttrId, LPBYTE pbAttr, LPDWORD pcbAttrLen)
 
WINSCARDAPI LONG WINAPI SCardSetAttrib (SCARDHANDLE hCard, DWORD dwAttrId, LPCBYTE pbAttr, DWORD cbAttrLen)
 
WINSCARDAPI LONG WINAPI SCardUIDlgSelectCardA (LPOPENCARDNAMEA_EX pDlgStruc)
 
WINSCARDAPI LONG WINAPI SCardUIDlgSelectCardW (LPOPENCARDNAMEW_EX pDlgStruc)
 
WINSCARDAPI LONG WINAPI GetOpenCardNameA (LPOPENCARDNAMEA pDlgStruc)
 
WINSCARDAPI LONG WINAPI GetOpenCardNameW (LPOPENCARDNAMEW pDlgStruc)
 
WINSCARDAPI LONG WINAPI SCardDlgExtendedError (void)
 
WINSCARDAPI LONG WINAPI SCardReadCacheA (SCARDCONTEXT hContext, UUID *CardIdentifier, DWORD FreshnessCounter, LPSTR LookupName, PBYTE Data, DWORD *DataLen)
 
WINSCARDAPI LONG WINAPI SCardReadCacheW (SCARDCONTEXT hContext, UUID *CardIdentifier, DWORD FreshnessCounter, LPWSTR LookupName, PBYTE Data, DWORD *DataLen)
 
WINSCARDAPI LONG WINAPI SCardWriteCacheA (SCARDCONTEXT hContext, UUID *CardIdentifier, DWORD FreshnessCounter, LPSTR LookupName, PBYTE Data, DWORD DataLen)
 
WINSCARDAPI LONG WINAPI SCardWriteCacheW (SCARDCONTEXT hContext, UUID *CardIdentifier, DWORD FreshnessCounter, LPWSTR LookupName, PBYTE Data, DWORD DataLen)
 
WINSCARDAPI LONG WINAPI SCardGetReaderIconA (SCARDCONTEXT hContext, LPCSTR szReaderName, LPBYTE pbIcon, LPDWORD pcbIcon)
 
WINSCARDAPI LONG WINAPI SCardGetReaderIconW (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPBYTE pbIcon, LPDWORD pcbIcon)
 
WINSCARDAPI LONG WINAPI SCardGetDeviceTypeIdA (SCARDCONTEXT hContext, LPCSTR szReaderName, LPDWORD pdwDeviceTypeId)
 
WINSCARDAPI LONG WINAPI SCardGetDeviceTypeIdW (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPDWORD pdwDeviceTypeId)
 
WINSCARDAPI LONG WINAPI SCardGetReaderDeviceInstanceIdA (SCARDCONTEXT hContext, LPCSTR szReaderName, LPSTR szDeviceInstanceId, LPDWORD pcchDeviceInstanceId)
 
WINSCARDAPI LONG WINAPI SCardGetReaderDeviceInstanceIdW (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPWSTR szDeviceInstanceId, LPDWORD pcchDeviceInstanceId)
 
WINSCARDAPI LONG WINAPI SCardListReadersWithDeviceInstanceIdA (SCARDCONTEXT hContext, LPCSTR szDeviceInstanceId, LPSTR mszReaders, LPDWORD pcchReaders)
 
WINSCARDAPI LONG WINAPI SCardListReadersWithDeviceInstanceIdW (SCARDCONTEXT hContext, LPCWSTR szDeviceInstanceId, LPWSTR mszReaders, LPDWORD pcchReaders)
 
WINSCARDAPI LONG WINAPI SCardAudit (SCARDCONTEXT hContext, DWORD dwEvent)
 
WINSCARDAPI const char *WINAPI SCardGetErrorString (LONG errorCode)
 
WINSCARDAPI const char *WINAPI SCardGetAttributeString (DWORD dwAttrId)
 
WINSCARDAPI const char *WINAPI SCardGetProtocolString (DWORD dwProtocols)
 
WINSCARDAPI const char *WINAPI SCardGetShareModeString (DWORD dwShareMode)
 
WINSCARDAPI const char *WINAPI SCardGetDispositionString (DWORD dwDisposition)
 
WINSCARDAPI const char *WINAPI SCardGetScopeString (DWORD dwScope)
 
WINSCARDAPI const char *WINAPI SCardGetCardStateString (DWORD dwCardState)
 
WINSCARDAPI char *WINAPI SCardGetReaderStateString (DWORD dwReaderState)
 
WINPR_API BOOL WinSCard_LoadApiTableFunctions (PSCardApiFunctionTable pWinSCardApiTable, HMODULE hWinSCardLibrary)
 
WINPR_API const SCardApiFunctionTableWinPR_GetSCardApiFunctionTable (void)
 

Variables

WINPR_API const SCARD_IO_REQUEST g_rgSCardT0Pci
 
WINPR_API const SCARD_IO_REQUEST g_rgSCardT1Pci
 
WINPR_API const SCARD_IO_REQUEST g_rgSCardRawPci
 

Macro Definition Documentation

◆ _WINSCARD_H_

#define _WINSCARD_H_   /* do not include winscard.h */

WinPR: Windows Portable Runtime Smart Card API

Copyright 2014 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2020 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m Copyright 2020 Thincast Technologies GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

◆ GetOpenCardName

#define GetOpenCardName   GetOpenCardNameA

◆ IOCTL_SMARTCARD_CONFISCATE

#define IOCTL_SMARTCARD_CONFISCATE   SCARD_CTL_CODE(4)

◆ IOCTL_SMARTCARD_EJECT

#define IOCTL_SMARTCARD_EJECT   SCARD_CTL_CODE(6)

◆ IOCTL_SMARTCARD_GET_ATTRIBUTE

#define IOCTL_SMARTCARD_GET_ATTRIBUTE   SCARD_CTL_CODE(2)

◆ IOCTL_SMARTCARD_GET_FEATURE_REQUEST

#define IOCTL_SMARTCARD_GET_FEATURE_REQUEST   SCARD_CTL_CODE(3400)

◆ IOCTL_SMARTCARD_GET_LAST_ERROR

#define IOCTL_SMARTCARD_GET_LAST_ERROR   SCARD_CTL_CODE(15)

◆ IOCTL_SMARTCARD_GET_PERF_CNTR

#define IOCTL_SMARTCARD_GET_PERF_CNTR   SCARD_CTL_CODE(16)

◆ IOCTL_SMARTCARD_GET_STATE

#define IOCTL_SMARTCARD_GET_STATE   SCARD_CTL_CODE(14)

◆ IOCTL_SMARTCARD_IS_ABSENT

#define IOCTL_SMARTCARD_IS_ABSENT   SCARD_CTL_CODE(11)

◆ IOCTL_SMARTCARD_IS_PRESENT

#define IOCTL_SMARTCARD_IS_PRESENT   SCARD_CTL_CODE(10)

◆ IOCTL_SMARTCARD_POWER

#define IOCTL_SMARTCARD_POWER   SCARD_CTL_CODE(1)

◆ IOCTL_SMARTCARD_SET_ATTRIBUTE

#define IOCTL_SMARTCARD_SET_ATTRIBUTE   SCARD_CTL_CODE(3)

◆ IOCTL_SMARTCARD_SET_PROTOCOL

#define IOCTL_SMARTCARD_SET_PROTOCOL   SCARD_CTL_CODE(12)

◆ IOCTL_SMARTCARD_SWALLOW

#define IOCTL_SMARTCARD_SWALLOW   SCARD_CTL_CODE(7)

◆ IOCTL_SMARTCARD_TRANSMIT

#define IOCTL_SMARTCARD_TRANSMIT   SCARD_CTL_CODE(5)

◆ LOPENCARD_SEARCH_CRITERIA

#define LOPENCARD_SEARCH_CRITERIA   LOPENCARD_SEARCH_CRITERIAA

◆ LOPENCARDNAME

#define LOPENCARDNAME   LOPENCARDNAMEA

◆ LOPENCARDNAME_EX

#define LOPENCARDNAME_EX   LOPENCARDNAME_EXA

◆ LPOCNCONNPROC

#define LPOCNCONNPROC   LPOCNCONNPROCA

◆ LPOPENCARD_SEARCH_CRITERIA

#define LPOPENCARD_SEARCH_CRITERIA   LPOPENCARD_SEARCH_CRITERIAA

◆ LPOPENCARDNAME

#define LPOPENCARDNAME   LPOPENCARDNAMEA

◆ LPOPENCARDNAME_EX

#define LPOPENCARDNAME_EX   LPOPENCARDNAME_EXA

◆ LPOPENCARDNAMEA_EX

#define LPOPENCARDNAMEA_EX   LPOPENCARDNAME_EXA

◆ LPOPENCARDNAMEW_EX

#define LPOPENCARDNAMEW_EX   LPOPENCARDNAME_EXW

◆ LPSCARD_READERSTATE

#define LPSCARD_READERSTATE   LPSCARD_READERSTATEA

◆ MAXIMUM_ATTR_STRING_LENGTH

#define MAXIMUM_ATTR_STRING_LENGTH   32

◆ MAXIMUM_SMARTCARD_READERS

#define MAXIMUM_SMARTCARD_READERS   10

◆ OPENCARD_SEARCH_CRITERIA

#define OPENCARD_SEARCH_CRITERIA   OPENCARD_SEARCH_CRITERIAA

◆ OPENCARDNAME

#define OPENCARDNAME   OPENCARDNAMEA

◆ OPENCARDNAME_EX

#define OPENCARDNAME_EX   OPENCARDNAME_EXA

◆ OPENCARDNAMEA_EX

#define OPENCARDNAMEA_EX   OPENCARDNAME_EXA

◆ OPENCARDNAMEW_EX

#define OPENCARDNAMEW_EX   OPENCARDNAME_EXW

◆ PCSCardIntroduceCardType

#define PCSCardIntroduceCardType (   hContext,
  szCardName,
  pbAtr,
  pbAtrMask,
  cbAtrLen,
  pguidPrimaryProvider,
  rgguidInterfaces,
  dwInterfaceCount 
)
Value:
SCardIntroduceCardType(hContext, szCardName, pguidPrimaryProvider, rgguidInterfaces, \
dwInterfaceCount, pbAtr, pbAtrMask, cbAtrLen)
#define SCardIntroduceCardType
Definition: include/winpr/smartcard.h:881

◆ POPENCARDNAMEA_EX

#define POPENCARDNAMEA_EX   POPENCARDNAME_EXA

◆ POPENCARDNAMEW_EX

#define POPENCARDNAMEW_EX   POPENCARDNAME_EXW

◆ PSCARD_READERSTATE

#define PSCARD_READERSTATE   PSCARD_READERSTATEA

◆ SC_DLG_FORCE_UI

#define SC_DLG_FORCE_UI   0x04

◆ SC_DLG_MINIMAL_UI

#define SC_DLG_MINIMAL_UI   0x01

◆ SC_DLG_NO_UI

#define SC_DLG_NO_UI   0x02

◆ SCARD_ABSENT

#define SCARD_ABSENT   1

◆ SCARD_ATR_LENGTH

#define SCARD_ATR_LENGTH   33

◆ SCARD_ATTR_ATR_STRING

#define SCARD_ATTR_ATR_STRING   SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0303)

◆ SCARD_ATTR_CHANNEL_ID

#define SCARD_ATTR_CHANNEL_ID   SCARD_ATTR_VALUE(SCARD_CLASS_COMMUNICATIONS, 0x0110)

◆ SCARD_ATTR_CHARACTERISTICS

#define SCARD_ATTR_CHARACTERISTICS   SCARD_ATTR_VALUE(SCARD_CLASS_MECHANICAL, 0x0150)

◆ SCARD_ATTR_CURRENT_BWT

#define SCARD_ATTR_CURRENT_BWT   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0209)

◆ SCARD_ATTR_CURRENT_CLK

#define SCARD_ATTR_CURRENT_CLK   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0202)

◆ SCARD_ATTR_CURRENT_CWT

#define SCARD_ATTR_CURRENT_CWT   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x020a)

◆ SCARD_ATTR_CURRENT_D

#define SCARD_ATTR_CURRENT_D   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0204)

◆ SCARD_ATTR_CURRENT_EBC_ENCODING

#define SCARD_ATTR_CURRENT_EBC_ENCODING   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x020b)

◆ SCARD_ATTR_CURRENT_F

#define SCARD_ATTR_CURRENT_F   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0203)

◆ SCARD_ATTR_CURRENT_IFSC

#define SCARD_ATTR_CURRENT_IFSC   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0207)

◆ SCARD_ATTR_CURRENT_IFSD

#define SCARD_ATTR_CURRENT_IFSD   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0208)

◆ SCARD_ATTR_CURRENT_IO_STATE

#define SCARD_ATTR_CURRENT_IO_STATE   SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0302)

◆ SCARD_ATTR_CURRENT_N

#define SCARD_ATTR_CURRENT_N   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0205)

◆ SCARD_ATTR_CURRENT_PROTOCOL_TYPE

#define SCARD_ATTR_CURRENT_PROTOCOL_TYPE   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0201)

◆ SCARD_ATTR_CURRENT_W

#define SCARD_ATTR_CURRENT_W   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0206)

◆ SCARD_ATTR_DEFAULT_CLK

#define SCARD_ATTR_DEFAULT_CLK   SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0121)

◆ SCARD_ATTR_DEFAULT_DATA_RATE

#define SCARD_ATTR_DEFAULT_DATA_RATE   SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0123)

◆ SCARD_ATTR_DEVICE_FRIENDLY_NAME

#define SCARD_ATTR_DEVICE_FRIENDLY_NAME   SCARD_ATTR_DEVICE_FRIENDLY_NAME_A

◆ SCARD_ATTR_DEVICE_FRIENDLY_NAME_A

#define SCARD_ATTR_DEVICE_FRIENDLY_NAME_A   SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0003)

◆ SCARD_ATTR_DEVICE_FRIENDLY_NAME_W

#define SCARD_ATTR_DEVICE_FRIENDLY_NAME_W   SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0005)

◆ SCARD_ATTR_DEVICE_IN_USE

#define SCARD_ATTR_DEVICE_IN_USE   SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0002)

◆ SCARD_ATTR_DEVICE_SYSTEM_NAME

#define SCARD_ATTR_DEVICE_SYSTEM_NAME   SCARD_ATTR_DEVICE_SYSTEM_NAME_A

◆ SCARD_ATTR_DEVICE_SYSTEM_NAME_A

#define SCARD_ATTR_DEVICE_SYSTEM_NAME_A   SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0004)

◆ SCARD_ATTR_DEVICE_SYSTEM_NAME_W

#define SCARD_ATTR_DEVICE_SYSTEM_NAME_W   SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0006)

◆ SCARD_ATTR_DEVICE_UNIT

#define SCARD_ATTR_DEVICE_UNIT   SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0001)

◆ SCARD_ATTR_ESC_AUTHREQUEST

#define SCARD_ATTR_ESC_AUTHREQUEST   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA005)

◆ SCARD_ATTR_ESC_CANCEL

#define SCARD_ATTR_ESC_CANCEL   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA003)

◆ SCARD_ATTR_ESC_RESET

#define SCARD_ATTR_ESC_RESET   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA000)

◆ SCARD_ATTR_EXTENDED_BWT

#define SCARD_ATTR_EXTENDED_BWT   SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x020c)

◆ SCARD_ATTR_ICC_INTERFACE_STATUS

#define SCARD_ATTR_ICC_INTERFACE_STATUS   SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0301)

◆ SCARD_ATTR_ICC_PRESENCE

#define SCARD_ATTR_ICC_PRESENCE   SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0300)

◆ SCARD_ATTR_ICC_TYPE_PER_ATR

#define SCARD_ATTR_ICC_TYPE_PER_ATR   SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0304)

◆ SCARD_ATTR_MAX_CLK

#define SCARD_ATTR_MAX_CLK   SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0122)

◆ SCARD_ATTR_MAX_DATA_RATE

#define SCARD_ATTR_MAX_DATA_RATE   SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0124)

◆ SCARD_ATTR_MAX_IFSD

#define SCARD_ATTR_MAX_IFSD   SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0125)

◆ SCARD_ATTR_MAXINPUT

#define SCARD_ATTR_MAXINPUT   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA007)

◆ SCARD_ATTR_POWER_MGMT_SUPPORT

#define SCARD_ATTR_POWER_MGMT_SUPPORT   SCARD_ATTR_VALUE(SCARD_CLASS_POWER_MGMT, 0x0131)

◆ SCARD_ATTR_PROTOCOL_TYPES

#define SCARD_ATTR_PROTOCOL_TYPES   SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0120)

◆ SCARD_ATTR_SUPRESS_T1_IFS_REQUEST

#define SCARD_ATTR_SUPRESS_T1_IFS_REQUEST   SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0007)

◆ SCARD_ATTR_USER_AUTH_INPUT_DEVICE

#define SCARD_ATTR_USER_AUTH_INPUT_DEVICE   SCARD_ATTR_VALUE(SCARD_CLASS_SECURITY, 0x0142)

◆ SCARD_ATTR_USER_TO_CARD_AUTH_DEVICE

#define SCARD_ATTR_USER_TO_CARD_AUTH_DEVICE   SCARD_ATTR_VALUE(SCARD_CLASS_SECURITY, 0x0140)

◆ SCARD_ATTR_VALUE

#define SCARD_ATTR_VALUE (   Class,
  Tag 
)    ((((ULONG)(Class)) << 16) | ((ULONG)(Tag)))

◆ SCARD_ATTR_VENDOR_IFD_SERIAL_NO

#define SCARD_ATTR_VENDOR_IFD_SERIAL_NO   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0103)

◆ SCARD_ATTR_VENDOR_IFD_TYPE

#define SCARD_ATTR_VENDOR_IFD_TYPE   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0101)

◆ SCARD_ATTR_VENDOR_IFD_VERSION

#define SCARD_ATTR_VENDOR_IFD_VERSION   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0102)

◆ SCARD_ATTR_VENDOR_NAME

#define SCARD_ATTR_VENDOR_NAME   SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0100)

◆ SCARD_AUDIT_CHV_FAILURE

#define SCARD_AUDIT_CHV_FAILURE   0x0

◆ SCARD_AUDIT_CHV_SUCCESS

#define SCARD_AUDIT_CHV_SUCCESS   0x1

◆ SCARD_AUTOALLOCATE

#define SCARD_AUTOALLOCATE   (DWORD)(-1)

◆ SCARD_CLASS_COMMUNICATIONS

#define SCARD_CLASS_COMMUNICATIONS   2

◆ SCARD_CLASS_ICC_STATE

#define SCARD_CLASS_ICC_STATE   9

◆ SCARD_CLASS_IFD_PROTOCOL

#define SCARD_CLASS_IFD_PROTOCOL   8

◆ SCARD_CLASS_MECHANICAL

#define SCARD_CLASS_MECHANICAL   6

◆ SCARD_CLASS_PERF

#define SCARD_CLASS_PERF   0x7FFE

◆ SCARD_CLASS_POWER_MGMT

#define SCARD_CLASS_POWER_MGMT   4

◆ SCARD_CLASS_PROTOCOL

#define SCARD_CLASS_PROTOCOL   3

◆ SCARD_CLASS_SECURITY

#define SCARD_CLASS_SECURITY   5

◆ SCARD_CLASS_SYSTEM

#define SCARD_CLASS_SYSTEM   0x7FFF

◆ SCARD_CLASS_VENDOR_DEFINED

#define SCARD_CLASS_VENDOR_DEFINED   7

◆ SCARD_CLASS_VENDOR_INFO

#define SCARD_CLASS_VENDOR_INFO   1

◆ SCARD_COLD_RESET

#define SCARD_COLD_RESET   1

◆ SCARD_CTL_CODE

#define SCARD_CTL_CODE (   code)     CTL_CODE(FILE_DEVICE_SMARTCARD, (code), METHOD_BUFFERED, FILE_ANY_ACCESS)

◆ SCARD_E_BAD_SEEK

#define SCARD_E_BAD_SEEK   -2146435031l

◆ SCARD_E_CANCELLED

#define SCARD_E_CANCELLED   -2146435070l

◆ SCARD_E_CANT_DISPOSE

#define SCARD_E_CANT_DISPOSE   -2146435058l

◆ SCARD_E_CARD_UNSUPPORTED

#define SCARD_E_CARD_UNSUPPORTED   -2146435044l

◆ SCARD_E_CERTIFICATE_UNAVAILABLE

#define SCARD_E_CERTIFICATE_UNAVAILABLE   -2146435027l

◆ SCARD_E_COMM_DATA_LOST

#define SCARD_E_COMM_DATA_LOST   -2146435025l

◆ SCARD_E_DIR_NOT_FOUND

#define SCARD_E_DIR_NOT_FOUND   -2146435037l

◆ SCARD_E_DUPLICATE_READER

#define SCARD_E_DUPLICATE_READER   -2146435045l

◆ SCARD_E_FILE_NOT_FOUND

#define SCARD_E_FILE_NOT_FOUND   -2146435036l

◆ SCARD_E_ICC_CREATEORDER

#define SCARD_E_ICC_CREATEORDER   -2146435039l

◆ SCARD_E_ICC_INSTALLATION

#define SCARD_E_ICC_INSTALLATION   -2146435040l

◆ SCARD_E_INSUFFICIENT_BUFFER

#define SCARD_E_INSUFFICIENT_BUFFER   -2146435064l

◆ SCARD_E_INVALID_ATR

#define SCARD_E_INVALID_ATR   -2146435051l

◆ SCARD_E_INVALID_CHV

#define SCARD_E_INVALID_CHV   -2146435030l

◆ SCARD_E_INVALID_HANDLE

#define SCARD_E_INVALID_HANDLE   -2146435069l

◆ SCARD_E_INVALID_PARAMETER

#define SCARD_E_INVALID_PARAMETER   -2146435068l

◆ SCARD_E_INVALID_TARGET

#define SCARD_E_INVALID_TARGET   -2146435067l

◆ SCARD_E_INVALID_VALUE

#define SCARD_E_INVALID_VALUE   -2146435055l

◆ SCARD_E_NO_ACCESS

#define SCARD_E_NO_ACCESS   -2146435033l

◆ SCARD_E_NO_DIR

#define SCARD_E_NO_DIR   -2146435035l

◆ SCARD_E_NO_FILE

#define SCARD_E_NO_FILE   -2146435034l

◆ SCARD_E_NO_KEY_CONTAINER

#define SCARD_E_NO_KEY_CONTAINER   -2146435024l

◆ SCARD_E_NO_MEMORY

#define SCARD_E_NO_MEMORY   -2146435066l

◆ SCARD_E_NO_PIN_CACHE

#define SCARD_E_NO_PIN_CACHE   -2146435021l

◆ SCARD_E_NO_READERS_AVAILABLE

#define SCARD_E_NO_READERS_AVAILABLE   -2146435026l

◆ SCARD_E_NO_SERVICE

#define SCARD_E_NO_SERVICE   -2146435043l

◆ SCARD_E_NO_SMARTCARD

#define SCARD_E_NO_SMARTCARD   -2146435060l

◆ SCARD_E_NO_SUCH_CERTIFICATE

#define SCARD_E_NO_SUCH_CERTIFICATE   -2146435028l

◆ SCARD_E_NOT_READY

#define SCARD_E_NOT_READY   -2146435056l

◆ SCARD_E_NOT_TRANSACTED

#define SCARD_E_NOT_TRANSACTED   -2146435050l

◆ SCARD_E_PCI_TOO_SMALL

#define SCARD_E_PCI_TOO_SMALL   -2146435047l

◆ SCARD_E_PIN_CACHE_EXPIRED

#define SCARD_E_PIN_CACHE_EXPIRED   -2146435022l

◆ SCARD_E_PROTO_MISMATCH

#define SCARD_E_PROTO_MISMATCH   -2146435057l

◆ SCARD_E_READ_ONLY_CARD

#define SCARD_E_READ_ONLY_CARD   -2146435020l

◆ SCARD_E_READER_UNAVAILABLE

#define SCARD_E_READER_UNAVAILABLE   -2146435049l

◆ SCARD_E_READER_UNSUPPORTED

#define SCARD_E_READER_UNSUPPORTED   -2146435046l

◆ SCARD_E_SERVER_TOO_BUSY

#define SCARD_E_SERVER_TOO_BUSY   -2146435023l

◆ SCARD_E_SERVICE_STOPPED

#define SCARD_E_SERVICE_STOPPED   -2146435042l

◆ SCARD_E_SHARING_VIOLATION

#define SCARD_E_SHARING_VIOLATION   -2146435061l

◆ SCARD_E_SYSTEM_CANCELLED

#define SCARD_E_SYSTEM_CANCELLED   -2146435054l

◆ SCARD_E_TIMEOUT

#define SCARD_E_TIMEOUT   -2146435062l

◆ SCARD_E_UNEXPECTED

#define SCARD_E_UNEXPECTED   -2146435041l

◆ SCARD_E_UNKNOWN_CARD

#define SCARD_E_UNKNOWN_CARD   -2146435059l

◆ SCARD_E_UNKNOWN_READER

#define SCARD_E_UNKNOWN_READER   -2146435063l

◆ SCARD_E_UNKNOWN_RES_MNG

#define SCARD_E_UNKNOWN_RES_MNG   -2146435029l

◆ SCARD_E_UNSUPPORTED_FEATURE

#define SCARD_E_UNSUPPORTED_FEATURE   -2146435038l

◆ SCARD_E_WRITE_TOO_MANY

#define SCARD_E_WRITE_TOO_MANY   -2146435032l

◆ SCARD_EJECT_CARD

#define SCARD_EJECT_CARD   3

◆ SCARD_F_COMM_ERROR

#define SCARD_F_COMM_ERROR   -2146435053l

◆ SCARD_F_INTERNAL_ERROR

#define SCARD_F_INTERNAL_ERROR   -2146435071l

◆ SCARD_F_UNKNOWN_ERROR

#define SCARD_F_UNKNOWN_ERROR   -2146435052l

◆ SCARD_F_WAITED_TOO_LONG

#define SCARD_F_WAITED_TOO_LONG   -2146435065l

◆ SCARD_LEAVE_CARD

#define SCARD_LEAVE_CARD   0

◆ SCARD_NEGOTIABLE

#define SCARD_NEGOTIABLE   5

◆ SCARD_P_SHUTDOWN

#define SCARD_P_SHUTDOWN   -2146435048l

◆ SCARD_PCI_RAW

#define SCARD_PCI_RAW   (&g_rgSCardRawPci)

◆ SCARD_PCI_T0

#define SCARD_PCI_T0   (&g_rgSCardT0Pci)

◆ SCARD_PCI_T1

#define SCARD_PCI_T1   (&g_rgSCardT1Pci)

◆ SCARD_PERF_BYTES_TRANSMITTED

#define SCARD_PERF_BYTES_TRANSMITTED   SCARD_ATTR_VALUE(SCARD_CLASS_PERF, 0x0002)

◆ SCARD_PERF_NUM_TRANSMISSIONS

#define SCARD_PERF_NUM_TRANSMISSIONS   SCARD_ATTR_VALUE(SCARD_CLASS_PERF, 0x0001)

◆ SCARD_PERF_TRANSMISSION_TIME

#define SCARD_PERF_TRANSMISSION_TIME   SCARD_ATTR_VALUE(SCARD_CLASS_PERF, 0x0003)

◆ SCARD_POWER_DOWN

#define SCARD_POWER_DOWN   0

◆ SCARD_POWERED

#define SCARD_POWERED   4

◆ SCARD_PRESENT

#define SCARD_PRESENT   2

◆ SCARD_PROTOCOL_DEFAULT

#define SCARD_PROTOCOL_DEFAULT   0x80000000u

◆ SCARD_PROTOCOL_OPTIMAL

#define SCARD_PROTOCOL_OPTIMAL   0x00000000u

◆ SCARD_PROTOCOL_RAW

#define SCARD_PROTOCOL_RAW   0x00010000u

◆ SCARD_PROTOCOL_T0

#define SCARD_PROTOCOL_T0   0x00000001u

◆ SCARD_PROTOCOL_T1

#define SCARD_PROTOCOL_T1   0x00000002u

◆ SCARD_PROTOCOL_Tx

#define SCARD_PROTOCOL_Tx   (SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1)

◆ SCARD_PROTOCOL_UNDEFINED

#define SCARD_PROTOCOL_UNDEFINED   0x00000000u

◆ SCARD_READER_CONFISCATES

#define SCARD_READER_CONFISCATES   0x00000004

◆ SCARD_READER_EJECTS

#define SCARD_READER_EJECTS   0x00000002

◆ SCARD_READER_SEL_AUTH_PACKAGE

#define SCARD_READER_SEL_AUTH_PACKAGE   ((DWORD)-629)

◆ SCARD_READER_SWALLOWS

#define SCARD_READER_SWALLOWS   0x00000001

◆ SCARD_READER_TYPE_IDE

#define SCARD_READER_TYPE_IDE   0x10

◆ SCARD_READER_TYPE_KEYBOARD

#define SCARD_READER_TYPE_KEYBOARD   0x04

◆ SCARD_READER_TYPE_NFC

#define SCARD_READER_TYPE_NFC   0x100

◆ SCARD_READER_TYPE_PARALELL

#define SCARD_READER_TYPE_PARALELL   0x02

◆ SCARD_READER_TYPE_PCMCIA

#define SCARD_READER_TYPE_PCMCIA   0x40

◆ SCARD_READER_TYPE_SCSI

#define SCARD_READER_TYPE_SCSI   0x08

◆ SCARD_READER_TYPE_SERIAL

#define SCARD_READER_TYPE_SERIAL   0x01

◆ SCARD_READER_TYPE_TPM

#define SCARD_READER_TYPE_TPM   0x80

◆ SCARD_READER_TYPE_UICC

#define SCARD_READER_TYPE_UICC   0x200

◆ SCARD_READER_TYPE_USB

#define SCARD_READER_TYPE_USB   0x20

◆ SCARD_READER_TYPE_VENDOR

#define SCARD_READER_TYPE_VENDOR   0xF0

◆ SCARD_READERSTATE

#define SCARD_READERSTATE   SCARD_READERSTATEA

◆ SCARD_RESET_CARD

#define SCARD_RESET_CARD   1

◆ SCARD_S_SUCCESS

#define SCARD_S_SUCCESS   NO_ERROR

◆ SCARD_SCOPE_SYSTEM

#define SCARD_SCOPE_SYSTEM   2

◆ SCARD_SCOPE_TERMINAL

#define SCARD_SCOPE_TERMINAL   1

◆ SCARD_SCOPE_USER

#define SCARD_SCOPE_USER   0

◆ SCARD_SHARE_DIRECT

#define SCARD_SHARE_DIRECT   3

◆ SCARD_SHARE_EXCLUSIVE

#define SCARD_SHARE_EXCLUSIVE   1

◆ SCARD_SHARE_SHARED

#define SCARD_SHARE_SHARED   2

◆ SCARD_SPECIFIC

#define SCARD_SPECIFIC   6

◆ SCARD_STATE_ATRMATCH

#define SCARD_STATE_ATRMATCH   0x00000040

◆ SCARD_STATE_CHANGED

#define SCARD_STATE_CHANGED   0x00000002

◆ SCARD_STATE_EMPTY

#define SCARD_STATE_EMPTY   0x00000010

◆ SCARD_STATE_EXCLUSIVE

#define SCARD_STATE_EXCLUSIVE   0x00000080

◆ SCARD_STATE_IGNORE

#define SCARD_STATE_IGNORE   0x00000001

◆ SCARD_STATE_INUSE

#define SCARD_STATE_INUSE   0x00000100

◆ SCARD_STATE_MUTE

#define SCARD_STATE_MUTE   0x00000200

◆ SCARD_STATE_PRESENT

#define SCARD_STATE_PRESENT   0x00000020

◆ SCARD_STATE_UNAVAILABLE

#define SCARD_STATE_UNAVAILABLE   0x00000008

◆ SCARD_STATE_UNAWARE

#define SCARD_STATE_UNAWARE   0x00000000

◆ SCARD_STATE_UNKNOWN

#define SCARD_STATE_UNKNOWN   0x00000004

◆ SCARD_STATE_UNPOWERED

#define SCARD_STATE_UNPOWERED   0x00000400

◆ SCARD_SWALLOWED

#define SCARD_SWALLOWED   3

◆ SCARD_T0_CMD_LENGTH

#define SCARD_T0_CMD_LENGTH   5

◆ SCARD_T0_HEADER_LENGTH

#define SCARD_T0_HEADER_LENGTH   7

◆ SCARD_T1_EPILOGUE_LENGTH

#define SCARD_T1_EPILOGUE_LENGTH   2

◆ SCARD_T1_MAX_IFS

#define SCARD_T1_MAX_IFS   254

◆ SCARD_T1_PROLOGUE_LENGTH

#define SCARD_T1_PROLOGUE_LENGTH   3

◆ SCARD_UNKNOWN

#define SCARD_UNKNOWN   0

◆ SCARD_UNPOWER_CARD

#define SCARD_UNPOWER_CARD   2

◆ SCARD_W_CACHE_ITEM_NOT_FOUND

#define SCARD_W_CACHE_ITEM_NOT_FOUND   -2146434960l

◆ SCARD_W_CACHE_ITEM_STALE

#define SCARD_W_CACHE_ITEM_STALE   -2146434959l

◆ SCARD_W_CACHE_ITEM_TOO_BIG

#define SCARD_W_CACHE_ITEM_TOO_BIG   -2146434958l

◆ SCARD_W_CANCELLED_BY_USER

#define SCARD_W_CANCELLED_BY_USER   -2146434962l

◆ SCARD_W_CARD_NOT_AUTHENTICATED

#define SCARD_W_CARD_NOT_AUTHENTICATED   -2146434961l

◆ SCARD_W_CHV_BLOCKED

#define SCARD_W_CHV_BLOCKED   -2146434964l

◆ SCARD_W_EOF

#define SCARD_W_EOF   -2146434963l

◆ SCARD_W_REMOVED_CARD

#define SCARD_W_REMOVED_CARD   -2146434967l

◆ SCARD_W_RESET_CARD

#define SCARD_W_RESET_CARD   -2146434968l

◆ SCARD_W_SECURITY_VIOLATION

#define SCARD_W_SECURITY_VIOLATION   -2146434966l

◆ SCARD_W_UNPOWERED_CARD

#define SCARD_W_UNPOWERED_CARD   -2146434969l

◆ SCARD_W_UNRESPONSIVE_CARD

#define SCARD_W_UNRESPONSIVE_CARD   -2146434970l

◆ SCARD_W_UNSUPPORTED_CARD

#define SCARD_W_UNSUPPORTED_CARD   -2146434971l

◆ SCARD_W_WRONG_CHV

#define SCARD_W_WRONG_CHV   -2146434965l

◆ SCARD_WARM_RESET

#define SCARD_WARM_RESET   2

◆ SCardAddReaderToGroup

#define SCardAddReaderToGroup   SCardAddReaderToGroupA

◆ SCardConnect

#define SCardConnect   SCardConnectA

◆ SCardForgetCardType

#define SCardForgetCardType   SCardForgetCardTypeA

◆ SCardForgetReader

#define SCardForgetReader   SCardForgetReaderA

◆ SCardForgetReaderGroup

#define SCardForgetReaderGroup   SCardForgetReaderGroupA

◆ SCardGetCardTypeProviderName

#define SCardGetCardTypeProviderName   SCardGetCardTypeProviderNameA

◆ SCardGetDeviceTypeId

#define SCardGetDeviceTypeId   SCardGetDeviceTypeIdA

◆ SCardGetProviderId

#define SCardGetProviderId   SCardGetProviderIdA

◆ SCardGetReaderCapabilities

#define SCardGetReaderCapabilities   SCardGetAttrib

◆ SCardGetReaderDeviceInstanceId

#define SCardGetReaderDeviceInstanceId   SCardGetReaderDeviceInstanceIdA

◆ SCardGetReaderIcon

#define SCardGetReaderIcon   SCardGetReaderIconA

◆ SCardGetStatusChange

#define SCardGetStatusChange   SCardGetStatusChangeA

◆ SCardIntroduceCardType

#define SCardIntroduceCardType   SCardIntroduceCardTypeA

◆ SCardIntroduceReader

#define SCardIntroduceReader   SCardIntroduceReaderA

◆ SCardIntroduceReaderGroup

#define SCardIntroduceReaderGroup   SCardIntroduceReaderGroupA

◆ SCardListCards

#define SCardListCards   SCardListCardsA

◆ SCardListCardTypes

#define SCardListCardTypes   SCardListCards

◆ SCardListInterfaces

#define SCardListInterfaces   SCardListInterfacesA

◆ SCardListReaderGroups

#define SCardListReaderGroups   SCardListReaderGroupsA

◆ SCardListReaders

#define SCardListReaders   SCardListReadersA

◆ SCardListReadersWithDeviceInstanceId

#define SCardListReadersWithDeviceInstanceId   SCardListReadersWithDeviceInstanceIdA

◆ SCardLocateCards

#define SCardLocateCards   SCardLocateCardsA

◆ SCardLocateCardsByATR

#define SCardLocateCardsByATR   SCardLocateCardsByATRA

◆ SCardReadCache

#define SCardReadCache   SCardReadCacheA

◆ SCardRemoveReaderFromGroup

#define SCardRemoveReaderFromGroup   SCardRemoveReaderFromGroupA

◆ SCardSetCardTypeProviderName

#define SCardSetCardTypeProviderName   SCardSetCardTypeProviderNameA

◆ SCardSetReaderCapabilities

#define SCardSetReaderCapabilities   SCardSetAttrib

◆ SCardStatus

#define SCardStatus   SCardStatusA

◆ SCardUIDlgSelectCard

#define SCardUIDlgSelectCard   SCardUIDlgSelectCardA

◆ SCardWriteCache

#define SCardWriteCache   SCardWriteCacheA

◆ SCERR_NOCARDNAME

#define SCERR_NOCARDNAME   0x4000

◆ SCERR_NOGUIDS

#define SCERR_NOGUIDS   0x8000

◆ WINSCARDAPI

#define WINSCARDAPI   WINPR_API

Typedef Documentation

◆ fnGetOpenCardNameA

typedef LONG(WINAPI* fnGetOpenCardNameA) (LPOPENCARDNAMEA pDlgStruc)

◆ fnGetOpenCardNameW

typedef LONG(WINAPI* fnGetOpenCardNameW) (LPOPENCARDNAMEW pDlgStruc)

◆ fnSCardAccessStartedEvent

typedef HANDLE(WINAPI* fnSCardAccessStartedEvent) (void)

◆ fnSCardAddReaderToGroupA

typedef LONG(WINAPI* fnSCardAddReaderToGroupA) (SCARDCONTEXT hContext, LPCSTR szReaderName, LPCSTR szGroupName)

◆ fnSCardAddReaderToGroupW

typedef LONG(WINAPI* fnSCardAddReaderToGroupW) (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPCWSTR szGroupName)

◆ fnSCardAudit

typedef LONG(WINAPI* fnSCardAudit) (SCARDCONTEXT hContext, DWORD dwEvent)

◆ fnSCardBeginTransaction

typedef LONG(WINAPI* fnSCardBeginTransaction) (SCARDHANDLE hCard)

◆ fnSCardCancel

typedef LONG(WINAPI* fnSCardCancel) (SCARDCONTEXT hContext)

◆ fnSCardCancelTransaction

typedef LONG(WINAPI* fnSCardCancelTransaction) (SCARDHANDLE hCard)

◆ fnSCardConnectA

typedef LONG(WINAPI* fnSCardConnectA) (SCARDCONTEXT hContext, LPCSTR szReader, DWORD dwShareMode, DWORD dwPreferredProtocols, LPSCARDHANDLE phCard, LPDWORD pdwActiveProtocol)

◆ fnSCardConnectW

typedef LONG(WINAPI* fnSCardConnectW) (SCARDCONTEXT hContext, LPCWSTR szReader, DWORD dwShareMode, DWORD dwPreferredProtocols, LPSCARDHANDLE phCard, LPDWORD pdwActiveProtocol)

◆ fnSCardControl

typedef LONG(WINAPI* fnSCardControl) (SCARDHANDLE hCard, DWORD dwControlCode, LPCVOID lpInBuffer, DWORD cbInBufferSize, LPVOID lpOutBuffer, DWORD cbOutBufferSize, LPDWORD lpBytesReturned)

◆ fnSCardDisconnect

typedef LONG(WINAPI* fnSCardDisconnect) (SCARDHANDLE hCard, DWORD dwDisposition)

◆ fnSCardDlgExtendedError

typedef LONG(WINAPI* fnSCardDlgExtendedError) (void)

◆ fnSCardEndTransaction

typedef LONG(WINAPI* fnSCardEndTransaction) (SCARDHANDLE hCard, DWORD dwDisposition)

◆ fnSCardEstablishContext

typedef LONG(WINAPI* fnSCardEstablishContext) (DWORD dwScope, LPCVOID pvReserved1, LPCVOID pvReserved2, LPSCARDCONTEXT phContext)

Extended API

◆ fnSCardForgetCardTypeA

typedef LONG(WINAPI* fnSCardForgetCardTypeA) (SCARDCONTEXT hContext, LPCSTR szCardName)

◆ fnSCardForgetCardTypeW

typedef LONG(WINAPI* fnSCardForgetCardTypeW) (SCARDCONTEXT hContext, LPCWSTR szCardName)

◆ fnSCardForgetReaderA

typedef LONG(WINAPI* fnSCardForgetReaderA) (SCARDCONTEXT hContext, LPCSTR szReaderName)

◆ fnSCardForgetReaderGroupA

typedef LONG(WINAPI* fnSCardForgetReaderGroupA) (SCARDCONTEXT hContext, LPCSTR szGroupName)

◆ fnSCardForgetReaderGroupW

typedef LONG(WINAPI* fnSCardForgetReaderGroupW) (SCARDCONTEXT hContext, LPCWSTR szGroupName)

◆ fnSCardForgetReaderW

typedef LONG(WINAPI* fnSCardForgetReaderW) (SCARDCONTEXT hContext, LPCWSTR szReaderName)

◆ fnSCardFreeMemory

typedef LONG(WINAPI* fnSCardFreeMemory) (SCARDCONTEXT hContext, LPVOID pvMem)

◆ fnSCardGetAttrib

typedef LONG(WINAPI* fnSCardGetAttrib) (SCARDHANDLE hCard, DWORD dwAttrId, LPBYTE pbAttr, LPDWORD pcbAttrLen)

◆ fnSCardGetCardTypeProviderNameA

typedef LONG(WINAPI* fnSCardGetCardTypeProviderNameA) (SCARDCONTEXT hContext, LPCSTR szCardName, DWORD dwProviderId, CHAR *szProvider, LPDWORD pcchProvider)

◆ fnSCardGetCardTypeProviderNameW

typedef LONG(WINAPI* fnSCardGetCardTypeProviderNameW) (SCARDCONTEXT hContext, LPCWSTR szCardName, DWORD dwProviderId, WCHAR *szProvider, LPDWORD pcchProvider)

◆ fnSCardGetDeviceTypeIdA

typedef LONG(WINAPI* fnSCardGetDeviceTypeIdA) (SCARDCONTEXT hContext, LPCSTR szReaderName, LPDWORD pdwDeviceTypeId)

◆ fnSCardGetDeviceTypeIdW

typedef LONG(WINAPI* fnSCardGetDeviceTypeIdW) (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPDWORD pdwDeviceTypeId)

◆ fnSCardGetProviderIdA

typedef LONG(WINAPI* fnSCardGetProviderIdA) (SCARDCONTEXT hContext, LPCSTR szCard, LPGUID pguidProviderId)

◆ fnSCardGetProviderIdW

typedef LONG(WINAPI* fnSCardGetProviderIdW) (SCARDCONTEXT hContext, LPCWSTR szCard, LPGUID pguidProviderId)

◆ fnSCardGetReaderDeviceInstanceIdA

typedef LONG(WINAPI* fnSCardGetReaderDeviceInstanceIdA) (SCARDCONTEXT hContext, LPCSTR szReaderName, LPSTR szDeviceInstanceId, LPDWORD pcchDeviceInstanceId)

◆ fnSCardGetReaderDeviceInstanceIdW

typedef LONG(WINAPI* fnSCardGetReaderDeviceInstanceIdW) (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPWSTR szDeviceInstanceId, LPDWORD pcchDeviceInstanceId)

◆ fnSCardGetReaderIconA

typedef LONG(WINAPI* fnSCardGetReaderIconA) (SCARDCONTEXT hContext, LPCSTR szReaderName, LPBYTE pbIcon, LPDWORD pcbIcon)

◆ fnSCardGetReaderIconW

typedef LONG(WINAPI* fnSCardGetReaderIconW) (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPBYTE pbIcon, LPDWORD pcbIcon)

◆ fnSCardGetStatusChangeA

typedef LONG(WINAPI* fnSCardGetStatusChangeA) (SCARDCONTEXT hContext, DWORD dwTimeout, LPSCARD_READERSTATEA rgReaderStates, DWORD cReaders)

◆ fnSCardGetStatusChangeW

typedef LONG(WINAPI* fnSCardGetStatusChangeW) (SCARDCONTEXT hContext, DWORD dwTimeout, LPSCARD_READERSTATEW rgReaderStates, DWORD cReaders)

◆ fnSCardGetTransmitCount

typedef LONG(WINAPI* fnSCardGetTransmitCount) (SCARDHANDLE hCard, LPDWORD pcTransmitCount)

◆ fnSCardIntroduceCardTypeA

typedef LONG(WINAPI* fnSCardIntroduceCardTypeA) (SCARDCONTEXT hContext, LPCSTR szCardName, LPCGUID pguidPrimaryProvider, LPCGUID rgguidInterfaces, DWORD dwInterfaceCount, LPCBYTE pbAtr, LPCBYTE pbAtrMask, DWORD cbAtrLen)

◆ fnSCardIntroduceCardTypeW

typedef LONG(WINAPI* fnSCardIntroduceCardTypeW) (SCARDCONTEXT hContext, LPCWSTR szCardName, LPCGUID pguidPrimaryProvider, LPCGUID rgguidInterfaces, DWORD dwInterfaceCount, LPCBYTE pbAtr, LPCBYTE pbAtrMask, DWORD cbAtrLen)

◆ fnSCardIntroduceReaderA

typedef LONG(WINAPI* fnSCardIntroduceReaderA) (SCARDCONTEXT hContext, LPCSTR szReaderName, LPCSTR szDeviceName)

◆ fnSCardIntroduceReaderGroupA

typedef LONG(WINAPI* fnSCardIntroduceReaderGroupA) (SCARDCONTEXT hContext, LPCSTR szGroupName)

◆ fnSCardIntroduceReaderGroupW

typedef LONG(WINAPI* fnSCardIntroduceReaderGroupW) (SCARDCONTEXT hContext, LPCWSTR szGroupName)

◆ fnSCardIntroduceReaderW

typedef LONG(WINAPI* fnSCardIntroduceReaderW) (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPCWSTR szDeviceName)

◆ fnSCardIsValidContext

typedef LONG(WINAPI* fnSCardIsValidContext) (SCARDCONTEXT hContext)

◆ fnSCardListCardsA

typedef LONG(WINAPI* fnSCardListCardsA) (SCARDCONTEXT hContext, LPCBYTE pbAtr, LPCGUID rgquidInterfaces, DWORD cguidInterfaceCount, CHAR *mszCards, LPDWORD pcchCards)

◆ fnSCardListCardsW

typedef LONG(WINAPI* fnSCardListCardsW) (SCARDCONTEXT hContext, LPCBYTE pbAtr, LPCGUID rgquidInterfaces, DWORD cguidInterfaceCount, WCHAR *mszCards, LPDWORD pcchCards)

◆ fnSCardListInterfacesA

typedef LONG(WINAPI* fnSCardListInterfacesA) (SCARDCONTEXT hContext, LPCSTR szCard, LPGUID pguidInterfaces, LPDWORD pcguidInterfaces)

◆ fnSCardListInterfacesW

typedef LONG(WINAPI* fnSCardListInterfacesW) (SCARDCONTEXT hContext, LPCWSTR szCard, LPGUID pguidInterfaces, LPDWORD pcguidInterfaces)

◆ fnSCardListReaderGroupsA

typedef LONG(WINAPI* fnSCardListReaderGroupsA) (SCARDCONTEXT hContext, LPSTR mszGroups, LPDWORD pcchGroups)

◆ fnSCardListReaderGroupsW

typedef LONG(WINAPI* fnSCardListReaderGroupsW) (SCARDCONTEXT hContext, LPWSTR mszGroups, LPDWORD pcchGroups)

◆ fnSCardListReadersA

typedef LONG(WINAPI* fnSCardListReadersA) (SCARDCONTEXT hContext, LPCSTR mszGroups, LPSTR mszReaders, LPDWORD pcchReaders)

◆ fnSCardListReadersW

typedef LONG(WINAPI* fnSCardListReadersW) (SCARDCONTEXT hContext, LPCWSTR mszGroups, LPWSTR mszReaders, LPDWORD pcchReaders)

◆ fnSCardListReadersWithDeviceInstanceIdA

typedef LONG(WINAPI* fnSCardListReadersWithDeviceInstanceIdA) (SCARDCONTEXT hContext, LPCSTR szDeviceInstanceId, LPSTR mszReaders, LPDWORD pcchReaders)

◆ fnSCardListReadersWithDeviceInstanceIdW

typedef LONG(WINAPI* fnSCardListReadersWithDeviceInstanceIdW) (SCARDCONTEXT hContext, LPCWSTR szDeviceInstanceId, LPWSTR mszReaders, LPDWORD pcchReaders)

◆ fnSCardLocateCardsA

typedef LONG(WINAPI* fnSCardLocateCardsA) (SCARDCONTEXT hContext, LPCSTR mszCards, LPSCARD_READERSTATEA rgReaderStates, DWORD cReaders)

◆ fnSCardLocateCardsByATRA

typedef LONG(WINAPI* fnSCardLocateCardsByATRA) (SCARDCONTEXT hContext, LPSCARD_ATRMASK rgAtrMasks, DWORD cAtrs, LPSCARD_READERSTATEA rgReaderStates, DWORD cReaders)

◆ fnSCardLocateCardsByATRW

typedef LONG(WINAPI* fnSCardLocateCardsByATRW) (SCARDCONTEXT hContext, LPSCARD_ATRMASK rgAtrMasks, DWORD cAtrs, LPSCARD_READERSTATEW rgReaderStates, DWORD cReaders)

◆ fnSCardLocateCardsW

typedef LONG(WINAPI* fnSCardLocateCardsW) (SCARDCONTEXT hContext, LPCWSTR mszCards, LPSCARD_READERSTATEW rgReaderStates, DWORD cReaders)

◆ fnSCardReadCacheA

typedef LONG(WINAPI* fnSCardReadCacheA) (SCARDCONTEXT hContext, UUID *CardIdentifier, DWORD FreshnessCounter, LPSTR LookupName, PBYTE Data, DWORD *DataLen)

◆ fnSCardReadCacheW

typedef LONG(WINAPI* fnSCardReadCacheW) (SCARDCONTEXT hContext, UUID *CardIdentifier, DWORD FreshnessCounter, LPWSTR LookupName, PBYTE Data, DWORD *DataLen)

◆ fnSCardReconnect

typedef LONG(WINAPI* fnSCardReconnect) (SCARDHANDLE hCard, DWORD dwShareMode, DWORD dwPreferredProtocols, DWORD dwInitialization, LPDWORD pdwActiveProtocol)

◆ fnSCardReleaseContext

typedef LONG(WINAPI* fnSCardReleaseContext) (SCARDCONTEXT hContext)

◆ fnSCardReleaseStartedEvent

typedef void(WINAPI* fnSCardReleaseStartedEvent) (void)

◆ fnSCardRemoveReaderFromGroupA

typedef LONG(WINAPI* fnSCardRemoveReaderFromGroupA) (SCARDCONTEXT hContext, LPCSTR szReaderName, LPCSTR szGroupName)

◆ fnSCardRemoveReaderFromGroupW

typedef LONG(WINAPI* fnSCardRemoveReaderFromGroupW) (SCARDCONTEXT hContext, LPCWSTR szReaderName, LPCWSTR szGroupName)

◆ fnSCardSetAttrib

typedef LONG(WINAPI* fnSCardSetAttrib) (SCARDHANDLE hCard, DWORD dwAttrId, LPCBYTE pbAttr, DWORD cbAttrLen)

◆ fnSCardSetCardTypeProviderNameA

typedef LONG(WINAPI* fnSCardSetCardTypeProviderNameA) (SCARDCONTEXT hContext, LPCSTR szCardName, DWORD dwProviderId, LPCSTR szProvider)

◆ fnSCardSetCardTypeProviderNameW

typedef LONG(WINAPI* fnSCardSetCardTypeProviderNameW) (SCARDCONTEXT hContext, LPCWSTR szCardName, DWORD dwProviderId, LPCWSTR szProvider)

◆ fnSCardState

typedef LONG(WINAPI* fnSCardState) (SCARDHANDLE hCard, LPDWORD pdwState, LPDWORD pdwProtocol, LPBYTE pbAtr, LPDWORD pcbAtrLen)

◆ fnSCardStatusA

typedef LONG(WINAPI* fnSCardStatusA) (SCARDHANDLE hCard, LPSTR mszReaderNames, LPDWORD pcchReaderLen, LPDWORD pdwState, LPDWORD pdwProtocol, LPBYTE pbAtr, LPDWORD pcbAtrLen)

◆ fnSCardStatusW

typedef LONG(WINAPI* fnSCardStatusW) (SCARDHANDLE hCard, LPWSTR mszReaderNames, LPDWORD pcchReaderLen, LPDWORD pdwState, LPDWORD pdwProtocol, LPBYTE pbAtr, LPDWORD pcbAtrLen)

◆ fnSCardTransmit

typedef LONG(WINAPI* fnSCardTransmit) (SCARDHANDLE hCard, LPCSCARD_IO_REQUEST pioSendPci, LPCBYTE pbSendBuffer, DWORD cbSendLength, LPSCARD_IO_REQUEST pioRecvPci, LPBYTE pbRecvBuffer, LPDWORD pcbRecvLength)

◆ fnSCardUIDlgSelectCardA

typedef LONG(WINAPI* fnSCardUIDlgSelectCardA) (LPOPENCARDNAMEA_EX pDlgStruc)

◆ fnSCardUIDlgSelectCardW

typedef LONG(WINAPI* fnSCardUIDlgSelectCardW) (LPOPENCARDNAMEW_EX pDlgStruc)

◆ fnSCardWriteCacheA

typedef LONG(WINAPI* fnSCardWriteCacheA) (SCARDCONTEXT hContext, UUID *CardIdentifier, DWORD FreshnessCounter, LPSTR LookupName, PBYTE Data, DWORD DataLen)

◆ fnSCardWriteCacheW

typedef LONG(WINAPI* fnSCardWriteCacheW) (SCARDCONTEXT hContext, UUID *CardIdentifier, DWORD FreshnessCounter, LPWSTR LookupName, PBYTE Data, DWORD DataLen)

◆ LPCSCARD_IO_REQUEST

◆ LPOCNCHKPROC

typedef BOOL(WINAPI* LPOCNCHKPROC) (SCARDCONTEXT hSCardContext, SCARDHANDLE hCard, PVOID pvUserData)

◆ LPOCNCONNPROCA

typedef SCARDHANDLE(WINAPI* LPOCNCONNPROCA) (SCARDCONTEXT hSCardContext, LPSTR szReader, LPSTR mszCards, PVOID pvUserData)

◆ LPOCNCONNPROCW

typedef SCARDHANDLE(WINAPI* LPOCNCONNPROCW) (SCARDCONTEXT hSCardContext, LPWSTR szReader, LPWSTR mszCards, PVOID pvUserData)

◆ LPOCNDSCPROC

typedef void(WINAPI* LPOCNDSCPROC) (SCARDCONTEXT hSCardContext, SCARDHANDLE hCard, PVOID pvUserData)

◆ LPOPENCARD_SEARCH_CRITERIAA

◆ LPOPENCARD_SEARCH_CRITERIAW

◆ LPOPENCARDNAME_EXA

◆ LPOPENCARDNAME_EXW

◆ LPOPENCARDNAMEA

typedef struct OPENCARDNAMEA * LPOPENCARDNAMEA

◆ LPOPENCARDNAMEW

typedef struct OPENCARDNAMEW * LPOPENCARDNAMEW

◆ LPSCARD_ATRMASK

typedef struct SCARD_ATRMASK * LPSCARD_ATRMASK

◆ LPSCARD_IO_REQUEST

◆ LPSCARD_READERSTATEA

◆ LPSCARD_READERSTATEW

◆ LPSCARD_T0_COMMAND

◆ LPSCARD_T0_REQUEST

◆ LPSCARD_T1_REQUEST

◆ LPSCARDCONTEXT

◆ LPSCARDHANDLE

◆ POPENCARD_SEARCH_CRITERIAA

◆ POPENCARD_SEARCH_CRITERIAW

◆ POPENCARDNAME_EXA

◆ POPENCARDNAME_EXW

◆ POPENCARDNAMEA

typedef struct OPENCARDNAMEA * POPENCARDNAMEA

◆ POPENCARDNAMEW

typedef struct OPENCARDNAMEW * POPENCARDNAMEW

◆ PREADER_SEL_REQUEST

◆ PREADER_SEL_RESPONSE

◆ PSCARD_ATRMASK

typedef struct SCARD_ATRMASK * PSCARD_ATRMASK

◆ PSCARD_IO_REQUEST

◆ PSCARD_READERSTATEA

◆ PSCARD_READERSTATEW

◆ PSCARD_T0_REQUEST

◆ PSCARD_T1_REQUEST

◆ PSCardApiFunctionTable

◆ PSCARDCONTEXT

◆ PSCARDHANDLE

◆ SCARDCONTEXT

typedef ULONG_PTR SCARDCONTEXT

◆ SCARDHANDLE

typedef ULONG_PTR SCARDHANDLE

Enumeration Type Documentation

◆ READER_SEL_REQUEST_MATCH_TYPE

Enumerator
RSR_MATCH_TYPE_READER_AND_CONTAINER 
RSR_MATCH_TYPE_SERIAL_NUMBER 
RSR_MATCH_TYPE_ALL_CARDS 

Function Documentation

◆ GetOpenCardNameA()

WINSCARDAPI LONG WINAPI GetOpenCardNameA ( LPOPENCARDNAMEA  pDlgStruc)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetOpenCardNameW()

WINSCARDAPI LONG WINAPI GetOpenCardNameW ( LPOPENCARDNAMEW  pDlgStruc)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardAccessStartedEvent()

WINSCARDAPI HANDLE WINAPI SCardAccessStartedEvent ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardAddReaderToGroupA()

WINSCARDAPI LONG WINAPI SCardAddReaderToGroupA ( SCARDCONTEXT  hContext,
LPCSTR  szReaderName,
LPCSTR  szGroupName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardAddReaderToGroupW()

WINSCARDAPI LONG WINAPI SCardAddReaderToGroupW ( SCARDCONTEXT  hContext,
LPCWSTR  szReaderName,
LPCWSTR  szGroupName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardAudit()

WINSCARDAPI LONG WINAPI SCardAudit ( SCARDCONTEXT  hContext,
DWORD  dwEvent 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardBeginTransaction()

WINSCARDAPI LONG WINAPI SCardBeginTransaction ( SCARDHANDLE  hCard)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardCancel()

WINSCARDAPI LONG WINAPI SCardCancel ( SCARDCONTEXT  hContext)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardCancelTransaction()

WINSCARDAPI LONG WINAPI SCardCancelTransaction ( SCARDHANDLE  hCard)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardConnectA()

WINSCARDAPI LONG WINAPI SCardConnectA ( SCARDCONTEXT  hContext,
LPCSTR  szReader,
DWORD  dwShareMode,
DWORD  dwPreferredProtocols,
LPSCARDHANDLE  phCard,
LPDWORD  pdwActiveProtocol 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardConnectW()

WINSCARDAPI LONG WINAPI SCardConnectW ( SCARDCONTEXT  hContext,
LPCWSTR  szReader,
DWORD  dwShareMode,
DWORD  dwPreferredProtocols,
LPSCARDHANDLE  phCard,
LPDWORD  pdwActiveProtocol 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardControl()

WINSCARDAPI LONG WINAPI SCardControl ( SCARDHANDLE  hCard,
DWORD  dwControlCode,
LPCVOID  lpInBuffer,
DWORD  cbInBufferSize,
LPVOID  lpOutBuffer,
DWORD  cbOutBufferSize,
LPDWORD  lpBytesReturned 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardDisconnect()

WINSCARDAPI LONG WINAPI SCardDisconnect ( SCARDHANDLE  hCard,
DWORD  dwDisposition 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardDlgExtendedError()

WINSCARDAPI LONG WINAPI SCardDlgExtendedError ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardEndTransaction()

WINSCARDAPI LONG WINAPI SCardEndTransaction ( SCARDHANDLE  hCard,
DWORD  dwDisposition 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardEstablishContext()

WINSCARDAPI LONG WINAPI SCardEstablishContext ( DWORD  dwScope,
LPCVOID  pvReserved1,
LPCVOID  pvReserved2,
LPSCARDCONTEXT  phContext 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardForgetCardTypeA()

WINSCARDAPI LONG WINAPI SCardForgetCardTypeA ( SCARDCONTEXT  hContext,
LPCSTR  szCardName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardForgetCardTypeW()

WINSCARDAPI LONG WINAPI SCardForgetCardTypeW ( SCARDCONTEXT  hContext,
LPCWSTR  szCardName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardForgetReaderA()

WINSCARDAPI LONG WINAPI SCardForgetReaderA ( SCARDCONTEXT  hContext,
LPCSTR  szReaderName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardForgetReaderGroupA()

WINSCARDAPI LONG WINAPI SCardForgetReaderGroupA ( SCARDCONTEXT  hContext,
LPCSTR  szGroupName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardForgetReaderGroupW()

WINSCARDAPI LONG WINAPI SCardForgetReaderGroupW ( SCARDCONTEXT  hContext,
LPCWSTR  szGroupName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardForgetReaderW()

WINSCARDAPI LONG WINAPI SCardForgetReaderW ( SCARDCONTEXT  hContext,
LPCWSTR  szReaderName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardFreeMemory()

WINSCARDAPI LONG WINAPI SCardFreeMemory ( SCARDCONTEXT  hContext,
LPVOID  pvMem 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardGetAttrib()

WINSCARDAPI LONG WINAPI SCardGetAttrib ( SCARDHANDLE  hCard,
DWORD  dwAttrId,
LPBYTE  pbAttr,
LPDWORD  pcbAttrLen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardGetAttributeString()

WINSCARDAPI const char* WINAPI SCardGetAttributeString ( DWORD  dwAttrId)
Here is the caller graph for this function:

◆ SCardGetCardStateString()

WINSCARDAPI const char* WINAPI SCardGetCardStateString ( DWORD  dwCardState)
Here is the caller graph for this function:

◆ SCardGetCardTypeProviderNameA()

WINSCARDAPI LONG WINAPI SCardGetCardTypeProviderNameA ( SCARDCONTEXT  hContext,
LPCSTR  szCardName,
DWORD  dwProviderId,
CHAR *  szProvider,
LPDWORD  pcchProvider 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardGetCardTypeProviderNameW()

WINSCARDAPI LONG WINAPI SCardGetCardTypeProviderNameW ( SCARDCONTEXT  hContext,
LPCWSTR  szCardName,
DWORD  dwProviderId,
WCHAR *  szProvider,
LPDWORD  pcchProvider 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardGetDeviceTypeIdA()

WINSCARDAPI LONG WINAPI SCardGetDeviceTypeIdA ( SCARDCONTEXT  hContext,
LPCSTR  szReaderName,
LPDWORD  pdwDeviceTypeId 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardGetDeviceTypeIdW()

WINSCARDAPI LONG WINAPI SCardGetDeviceTypeIdW ( SCARDCONTEXT  hContext,
LPCWSTR  szReaderName,
LPDWORD  pdwDeviceTypeId 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardGetDispositionString()

WINSCARDAPI const char* WINAPI SCardGetDispositionString ( DWORD  dwDisposition)
Here is the caller graph for this function:

◆ SCardGetErrorString()

WINSCARDAPI const char* WINAPI SCardGetErrorString ( LONG  errorCode)

Extended API

◆ SCardGetProtocolString()

WINSCARDAPI const char* WINAPI SCardGetProtocolString ( DWORD  dwProtocols)
Here is the caller graph for this function:

◆ SCardGetProviderIdA()

WINSCARDAPI LONG WINAPI SCardGetProviderIdA ( SCARDCONTEXT  hContext,
LPCSTR  szCard,
LPGUID  pguidProviderId 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardGetProviderIdW()

WINSCARDAPI LONG WINAPI SCardGetProviderIdW ( SCARDCONTEXT  hContext,
LPCWSTR  szCard,
LPGUID  pguidProviderId 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardGetReaderDeviceInstanceIdA()

WINSCARDAPI LONG WINAPI SCardGetReaderDeviceInstanceIdA ( SCARDCONTEXT  hContext,
LPCSTR  szReaderName,
LPSTR  szDeviceInstanceId,
LPDWORD  pcchDeviceInstanceId 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardGetReaderDeviceInstanceIdW()

WINSCARDAPI LONG WINAPI SCardGetReaderDeviceInstanceIdW ( SCARDCONTEXT  hContext,
LPCWSTR  szReaderName,
LPWSTR  szDeviceInstanceId,
LPDWORD  pcchDeviceInstanceId 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardGetReaderIconA()

WINSCARDAPI LONG WINAPI SCardGetReaderIconA ( SCARDCONTEXT  hContext,
LPCSTR  szReaderName,
LPBYTE  pbIcon,
LPDWORD  pcbIcon 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardGetReaderIconW()

WINSCARDAPI LONG WINAPI SCardGetReaderIconW ( SCARDCONTEXT  hContext,
LPCWSTR  szReaderName,
LPBYTE  pbIcon,
LPDWORD  pcbIcon 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardGetReaderStateString()

WINSCARDAPI char* WINAPI SCardGetReaderStateString ( DWORD  dwReaderState)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardGetScopeString()

WINSCARDAPI const char* WINAPI SCardGetScopeString ( DWORD  dwScope)
Here is the caller graph for this function:

◆ SCardGetShareModeString()

WINSCARDAPI const char* WINAPI SCardGetShareModeString ( DWORD  dwShareMode)
Here is the caller graph for this function:

◆ SCardGetStatusChangeA()

WINSCARDAPI LONG WINAPI SCardGetStatusChangeA ( SCARDCONTEXT  hContext,
DWORD  dwTimeout,
LPSCARD_READERSTATEA  rgReaderStates,
DWORD  cReaders 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardGetStatusChangeW()

WINSCARDAPI LONG WINAPI SCardGetStatusChangeW ( SCARDCONTEXT  hContext,
DWORD  dwTimeout,
LPSCARD_READERSTATEW  rgReaderStates,
DWORD  cReaders 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardGetTransmitCount()

WINSCARDAPI LONG WINAPI SCardGetTransmitCount ( SCARDHANDLE  hCard,
LPDWORD  pcTransmitCount 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardIntroduceCardTypeA()

WINSCARDAPI LONG WINAPI SCardIntroduceCardTypeA ( SCARDCONTEXT  hContext,
LPCSTR  szCardName,
LPCGUID  pguidPrimaryProvider,
LPCGUID  rgguidInterfaces,
DWORD  dwInterfaceCount,
LPCBYTE  pbAtr,
LPCBYTE  pbAtrMask,
DWORD  cbAtrLen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardIntroduceCardTypeW()

WINSCARDAPI LONG WINAPI SCardIntroduceCardTypeW ( SCARDCONTEXT  hContext,
LPCWSTR  szCardName,
LPCGUID  pguidPrimaryProvider,
LPCGUID  rgguidInterfaces,
DWORD  dwInterfaceCount,
LPCBYTE  pbAtr,
LPCBYTE  pbAtrMask,
DWORD  cbAtrLen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardIntroduceReaderA()

WINSCARDAPI LONG WINAPI SCardIntroduceReaderA ( SCARDCONTEXT  hContext,
LPCSTR  szReaderName,
LPCSTR  szDeviceName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardIntroduceReaderGroupA()

WINSCARDAPI LONG WINAPI SCardIntroduceReaderGroupA ( SCARDCONTEXT  hContext,
LPCSTR  szGroupName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardIntroduceReaderGroupW()

WINSCARDAPI LONG WINAPI SCardIntroduceReaderGroupW ( SCARDCONTEXT  hContext,
LPCWSTR  szGroupName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardIntroduceReaderW()

WINSCARDAPI LONG WINAPI SCardIntroduceReaderW ( SCARDCONTEXT  hContext,
LPCWSTR  szReaderName,
LPCWSTR  szDeviceName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardIsValidContext()

WINSCARDAPI LONG WINAPI SCardIsValidContext ( SCARDCONTEXT  hContext)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardListCardsA()

WINSCARDAPI LONG WINAPI SCardListCardsA ( SCARDCONTEXT  hContext,
LPCBYTE  pbAtr,
LPCGUID  rgquidInterfaces,
DWORD  cguidInterfaceCount,
CHAR *  mszCards,
LPDWORD  pcchCards 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardListCardsW()

WINSCARDAPI LONG WINAPI SCardListCardsW ( SCARDCONTEXT  hContext,
LPCBYTE  pbAtr,
LPCGUID  rgquidInterfaces,
DWORD  cguidInterfaceCount,
WCHAR *  mszCards,
LPDWORD  pcchCards 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardListInterfacesA()

WINSCARDAPI LONG WINAPI SCardListInterfacesA ( SCARDCONTEXT  hContext,
LPCSTR  szCard,
LPGUID  pguidInterfaces,
LPDWORD  pcguidInterfaces 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardListInterfacesW()

WINSCARDAPI LONG WINAPI SCardListInterfacesW ( SCARDCONTEXT  hContext,
LPCWSTR  szCard,
LPGUID  pguidInterfaces,
LPDWORD  pcguidInterfaces 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardListReaderGroupsA()

WINSCARDAPI LONG WINAPI SCardListReaderGroupsA ( SCARDCONTEXT  hContext,
LPSTR  mszGroups,
LPDWORD  pcchGroups 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardListReaderGroupsW()

WINSCARDAPI LONG WINAPI SCardListReaderGroupsW ( SCARDCONTEXT  hContext,
LPWSTR  mszGroups,
LPDWORD  pcchGroups 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardListReadersA()

WINSCARDAPI LONG WINAPI SCardListReadersA ( SCARDCONTEXT  hContext,
LPCSTR  mszGroups,
LPSTR  mszReaders,
LPDWORD  pcchReaders 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardListReadersW()

WINSCARDAPI LONG WINAPI SCardListReadersW ( SCARDCONTEXT  hContext,
LPCWSTR  mszGroups,
LPWSTR  mszReaders,
LPDWORD  pcchReaders 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardListReadersWithDeviceInstanceIdA()

WINSCARDAPI LONG WINAPI SCardListReadersWithDeviceInstanceIdA ( SCARDCONTEXT  hContext,
LPCSTR  szDeviceInstanceId,
LPSTR  mszReaders,
LPDWORD  pcchReaders 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardListReadersWithDeviceInstanceIdW()

WINSCARDAPI LONG WINAPI SCardListReadersWithDeviceInstanceIdW ( SCARDCONTEXT  hContext,
LPCWSTR  szDeviceInstanceId,
LPWSTR  mszReaders,
LPDWORD  pcchReaders 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardLocateCardsA()

WINSCARDAPI LONG WINAPI SCardLocateCardsA ( SCARDCONTEXT  hContext,
LPCSTR  mszCards,
LPSCARD_READERSTATEA  rgReaderStates,
DWORD  cReaders 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardLocateCardsByATRA()

WINSCARDAPI LONG WINAPI SCardLocateCardsByATRA ( SCARDCONTEXT  hContext,
LPSCARD_ATRMASK  rgAtrMasks,
DWORD  cAtrs,
LPSCARD_READERSTATEA  rgReaderStates,
DWORD  cReaders 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardLocateCardsByATRW()

WINSCARDAPI LONG WINAPI SCardLocateCardsByATRW ( SCARDCONTEXT  hContext,
LPSCARD_ATRMASK  rgAtrMasks,
DWORD  cAtrs,
LPSCARD_READERSTATEW  rgReaderStates,
DWORD  cReaders 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardLocateCardsW()

WINSCARDAPI LONG WINAPI SCardLocateCardsW ( SCARDCONTEXT  hContext,
LPCWSTR  mszCards,
LPSCARD_READERSTATEW  rgReaderStates,
DWORD  cReaders 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardReadCacheA()

WINSCARDAPI LONG WINAPI SCardReadCacheA ( SCARDCONTEXT  hContext,
UUID *  CardIdentifier,
DWORD  FreshnessCounter,
LPSTR  LookupName,
PBYTE  Data,
DWORD *  DataLen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardReadCacheW()

WINSCARDAPI LONG WINAPI SCardReadCacheW ( SCARDCONTEXT  hContext,
UUID *  CardIdentifier,
DWORD  FreshnessCounter,
LPWSTR  LookupName,
PBYTE  Data,
DWORD *  DataLen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardReconnect()

WINSCARDAPI LONG WINAPI SCardReconnect ( SCARDHANDLE  hCard,
DWORD  dwShareMode,
DWORD  dwPreferredProtocols,
DWORD  dwInitialization,
LPDWORD  pdwActiveProtocol 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardReleaseContext()

WINSCARDAPI LONG WINAPI SCardReleaseContext ( SCARDCONTEXT  hContext)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardReleaseStartedEvent()

WINSCARDAPI void WINAPI SCardReleaseStartedEvent ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardRemoveReaderFromGroupA()

WINSCARDAPI LONG WINAPI SCardRemoveReaderFromGroupA ( SCARDCONTEXT  hContext,
LPCSTR  szReaderName,
LPCSTR  szGroupName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardRemoveReaderFromGroupW()

WINSCARDAPI LONG WINAPI SCardRemoveReaderFromGroupW ( SCARDCONTEXT  hContext,
LPCWSTR  szReaderName,
LPCWSTR  szGroupName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardSetAttrib()

WINSCARDAPI LONG WINAPI SCardSetAttrib ( SCARDHANDLE  hCard,
DWORD  dwAttrId,
LPCBYTE  pbAttr,
DWORD  cbAttrLen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardSetCardTypeProviderNameA()

WINSCARDAPI LONG WINAPI SCardSetCardTypeProviderNameA ( SCARDCONTEXT  hContext,
LPCSTR  szCardName,
DWORD  dwProviderId,
LPCSTR  szProvider 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardSetCardTypeProviderNameW()

WINSCARDAPI LONG WINAPI SCardSetCardTypeProviderNameW ( SCARDCONTEXT  hContext,
LPCWSTR  szCardName,
DWORD  dwProviderId,
LPCWSTR  szProvider 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardState()

WINSCARDAPI LONG WINAPI SCardState ( SCARDHANDLE  hCard,
LPDWORD  pdwState,
LPDWORD  pdwProtocol,
LPBYTE  pbAtr,
LPDWORD  pcbAtrLen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardStatusA()

WINSCARDAPI LONG WINAPI SCardStatusA ( SCARDHANDLE  hCard,
LPSTR  mszReaderNames,
LPDWORD  pcchReaderLen,
LPDWORD  pdwState,
LPDWORD  pdwProtocol,
LPBYTE  pbAtr,
LPDWORD  pcbAtrLen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardStatusW()

WINSCARDAPI LONG WINAPI SCardStatusW ( SCARDHANDLE  hCard,
LPWSTR  mszReaderNames,
LPDWORD  pcchReaderLen,
LPDWORD  pdwState,
LPDWORD  pdwProtocol,
LPBYTE  pbAtr,
LPDWORD  pcbAtrLen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardTransmit()

WINSCARDAPI LONG WINAPI SCardTransmit ( SCARDHANDLE  hCard,
LPCSCARD_IO_REQUEST  pioSendPci,
LPCBYTE  pbSendBuffer,
DWORD  cbSendLength,
LPSCARD_IO_REQUEST  pioRecvPci,
LPBYTE  pbRecvBuffer,
LPDWORD  pcbRecvLength 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardUIDlgSelectCardA()

WINSCARDAPI LONG WINAPI SCardUIDlgSelectCardA ( LPOPENCARDNAMEA_EX  pDlgStruc)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardUIDlgSelectCardW()

WINSCARDAPI LONG WINAPI SCardUIDlgSelectCardW ( LPOPENCARDNAMEW_EX  pDlgStruc)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardWriteCacheA()

WINSCARDAPI LONG WINAPI SCardWriteCacheA ( SCARDCONTEXT  hContext,
UUID *  CardIdentifier,
DWORD  FreshnessCounter,
LPSTR  LookupName,
PBYTE  Data,
DWORD  DataLen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCardWriteCacheW()

WINSCARDAPI LONG WINAPI SCardWriteCacheW ( SCARDCONTEXT  hContext,
UUID *  CardIdentifier,
DWORD  FreshnessCounter,
LPWSTR  LookupName,
PBYTE  Data,
DWORD  DataLen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WinPR_GetSCardApiFunctionTable()

WINPR_API const SCardApiFunctionTable* WinPR_GetSCardApiFunctionTable ( void  )
Here is the caller graph for this function:

◆ WinSCard_LoadApiTableFunctions()

WINPR_API BOOL WinSCard_LoadApiTableFunctions ( PSCardApiFunctionTable  pWinSCardApiTable,
HMODULE  hWinSCardLibrary 
)
Here is the caller graph for this function:

Variable Documentation

◆ g_rgSCardRawPci

WINPR_API const SCARD_IO_REQUEST g_rgSCardRawPci
extern

◆ g_rgSCardT0Pci

WINPR_API const SCARD_IO_REQUEST g_rgSCardT0Pci
extern

Standard Windows Smart Card API

◆ g_rgSCardT1Pci

WINPR_API const SCARD_IO_REQUEST g_rgSCardT1Pci
extern