## Vanara.PInvoke.WinSCard  
PInvoke API (methods, structures and constants) imported from Windows WinSCard.dll. This assembly provides the definitions and symbols necessary for an Application or Smart Card Service Provider to access the Smartcard Subsystem.

- Includes methods from winscard.dll  
- Current NuGet release: [![Nuget](https://img.shields.io/nuget/v/Vanara.PInvoke.WinSCard?logo=nuget&style=flat-square)![Nuget](https://img.shields.io/nuget/dt/Vanara.PInvoke.WinSCard?label=%20&style=flat-square)](https://www.nuget.org/packages/Vanara.PInvoke.WinSCard)  
### Methods - 100% API coverage (47 of 47 functions)  
Native Method | Header | Managed Method  
--- | --- | ---  
[GetOpenCardNameA](https://www.google.com/search?num=5&q=GetOpenCardNameA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.GetOpenCardName](https://github.com/dahall/Vanara/search?l=C%23&q=GetOpenCardName)  
[GetOpenCardNameW](https://www.google.com/search?num=5&q=GetOpenCardNameW+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.GetOpenCardName](https://github.com/dahall/Vanara/search?l=C%23&q=GetOpenCardName)  
[SCardAccessStartedEvent](https://www.google.com/search?num=5&q=SCardAccessStartedEvent+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardAccessStartedEvent](https://github.com/dahall/Vanara/search?l=C%23&q=SCardAccessStartedEvent)  
[SCardAddReaderToGroup](https://www.google.com/search?num=5&q=SCardAddReaderToGroupA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardAddReaderToGroup](https://github.com/dahall/Vanara/search?l=C%23&q=SCardAddReaderToGroup)  
[SCardAudit](https://www.google.com/search?num=5&q=SCardAudit+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardAudit](https://github.com/dahall/Vanara/search?l=C%23&q=SCardAudit)  
[SCardBeginTransaction](https://www.google.com/search?num=5&q=SCardBeginTransaction+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardBeginTransaction](https://github.com/dahall/Vanara/search?l=C%23&q=SCardBeginTransaction)  
[SCardCancel](https://www.google.com/search?num=5&q=SCardCancel+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardCancel](https://github.com/dahall/Vanara/search?l=C%23&q=SCardCancel)  
[SCardConnect](https://www.google.com/search?num=5&q=SCardConnectA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardConnect](https://github.com/dahall/Vanara/search?l=C%23&q=SCardConnect)  
[SCardControl](https://www.google.com/search?num=5&q=SCardControl+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardControl](https://github.com/dahall/Vanara/search?l=C%23&q=SCardControl)  
[SCardDisconnect](https://www.google.com/search?num=5&q=SCardDisconnect+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardDisconnect](https://github.com/dahall/Vanara/search?l=C%23&q=SCardDisconnect)  
[SCardEndTransaction](https://www.google.com/search?num=5&q=SCardEndTransaction+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardEndTransaction](https://github.com/dahall/Vanara/search?l=C%23&q=SCardEndTransaction)  
[SCardEstablishContext](https://www.google.com/search?num=5&q=SCardEstablishContext+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardEstablishContext](https://github.com/dahall/Vanara/search?l=C%23&q=SCardEstablishContext)  
[SCardForgetCardType](https://www.google.com/search?num=5&q=SCardForgetCardTypeA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardForgetCardType](https://github.com/dahall/Vanara/search?l=C%23&q=SCardForgetCardType)  
[SCardForgetReader](https://www.google.com/search?num=5&q=SCardForgetReaderA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardForgetReader](https://github.com/dahall/Vanara/search?l=C%23&q=SCardForgetReader)  
[SCardForgetReaderGroup](https://www.google.com/search?num=5&q=SCardForgetReaderGroupA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardForgetReaderGroup](https://github.com/dahall/Vanara/search?l=C%23&q=SCardForgetReaderGroup)  
[SCardFreeMemory](https://www.google.com/search?num=5&q=SCardFreeMemory+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardFreeMemory](https://github.com/dahall/Vanara/search?l=C%23&q=SCardFreeMemory)  
[SCardGetAttrib](https://www.google.com/search?num=5&q=SCardGetAttrib+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardGetAttrib](https://github.com/dahall/Vanara/search?l=C%23&q=SCardGetAttrib)  
[SCardGetCardTypeProviderName](https://www.google.com/search?num=5&q=SCardGetCardTypeProviderNameA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardGetCardTypeProviderName](https://github.com/dahall/Vanara/search?l=C%23&q=SCardGetCardTypeProviderName)  
[SCardGetDeviceTypeId](https://www.google.com/search?num=5&q=SCardGetDeviceTypeIdA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardGetDeviceTypeId](https://github.com/dahall/Vanara/search?l=C%23&q=SCardGetDeviceTypeId)  
[SCardGetProviderId](https://www.google.com/search?num=5&q=SCardGetProviderIdA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardGetProviderId](https://github.com/dahall/Vanara/search?l=C%23&q=SCardGetProviderId)  
[SCardGetReaderDeviceInstanceId](https://www.google.com/search?num=5&q=SCardGetReaderDeviceInstanceIdA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardGetReaderDeviceInstanceId](https://github.com/dahall/Vanara/search?l=C%23&q=SCardGetReaderDeviceInstanceId)  
[SCardGetReaderIcon](https://www.google.com/search?num=5&q=SCardGetReaderIconA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardGetReaderIcon](https://github.com/dahall/Vanara/search?l=C%23&q=SCardGetReaderIcon)  
[SCardGetStatusChange](https://www.google.com/search?num=5&q=SCardGetStatusChangeA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardGetStatusChange](https://github.com/dahall/Vanara/search?l=C%23&q=SCardGetStatusChange)  
[SCardGetTransmitCount](https://www.google.com/search?num=5&q=SCardGetTransmitCount+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardGetTransmitCount](https://github.com/dahall/Vanara/search?l=C%23&q=SCardGetTransmitCount)  
[SCardIntroduceCardType](https://www.google.com/search?num=5&q=SCardIntroduceCardTypeA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardIntroduceCardType](https://github.com/dahall/Vanara/search?l=C%23&q=SCardIntroduceCardType)  
[SCardIntroduceReader](https://www.google.com/search?num=5&q=SCardIntroduceReaderA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardIntroduceReader](https://github.com/dahall/Vanara/search?l=C%23&q=SCardIntroduceReader)  
[SCardIntroduceReaderGroup](https://www.google.com/search?num=5&q=SCardIntroduceReaderGroupA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardIntroduceReaderGroup](https://github.com/dahall/Vanara/search?l=C%23&q=SCardIntroduceReaderGroup)  
[SCardIsValidContext](https://www.google.com/search?num=5&q=SCardIsValidContext+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardIsValidContext](https://github.com/dahall/Vanara/search?l=C%23&q=SCardIsValidContext)  
[SCardListCards](https://www.google.com/search?num=5&q=SCardListCardsA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardListCards](https://github.com/dahall/Vanara/search?l=C%23&q=SCardListCards)  
[SCardListInterfaces](https://www.google.com/search?num=5&q=SCardListInterfacesA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardListInterfaces](https://github.com/dahall/Vanara/search?l=C%23&q=SCardListInterfaces)  
[SCardListReaderGroups](https://www.google.com/search?num=5&q=SCardListReaderGroupsA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardListReaderGroups](https://github.com/dahall/Vanara/search?l=C%23&q=SCardListReaderGroups)  
[SCardListReaders](https://www.google.com/search?num=5&q=SCardListReadersA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardListReaders](https://github.com/dahall/Vanara/search?l=C%23&q=SCardListReaders)  
[SCardListReadersWithDeviceInstanceId](https://www.google.com/search?num=5&q=SCardListReadersWithDeviceInstanceIdA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardListReadersWithDeviceInstanceId](https://github.com/dahall/Vanara/search?l=C%23&q=SCardListReadersWithDeviceInstanceId)  
[SCardLocateCards](https://www.google.com/search?num=5&q=SCardLocateCardsA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardLocateCards](https://github.com/dahall/Vanara/search?l=C%23&q=SCardLocateCards)  
[SCardLocateCardsByATR](https://www.google.com/search?num=5&q=SCardLocateCardsByATRA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardLocateCardsByATR](https://github.com/dahall/Vanara/search?l=C%23&q=SCardLocateCardsByATR)  
[SCardReadCache](https://www.google.com/search?num=5&q=SCardReadCacheA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardReadCache](https://github.com/dahall/Vanara/search?l=C%23&q=SCardReadCache)  
[SCardReconnect](https://www.google.com/search?num=5&q=SCardReconnect+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardReconnect](https://github.com/dahall/Vanara/search?l=C%23&q=SCardReconnect)  
[SCardReleaseContext](https://www.google.com/search?num=5&q=SCardReleaseContext+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardReleaseContext](https://github.com/dahall/Vanara/search?l=C%23&q=SCardReleaseContext)  
[SCardReleaseStartedEvent](https://www.google.com/search?num=5&q=SCardReleaseStartedEvent+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardReleaseStartedEvent](https://github.com/dahall/Vanara/search?l=C%23&q=SCardReleaseStartedEvent)  
[SCardRemoveReaderFromGroup](https://www.google.com/search?num=5&q=SCardRemoveReaderFromGroupA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardRemoveReaderFromGroup](https://github.com/dahall/Vanara/search?l=C%23&q=SCardRemoveReaderFromGroup)  
[SCardSetAttrib](https://www.google.com/search?num=5&q=SCardSetAttrib+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardSetAttrib](https://github.com/dahall/Vanara/search?l=C%23&q=SCardSetAttrib)  
[SCardSetCardTypeProviderName](https://www.google.com/search?num=5&q=SCardSetCardTypeProviderNameA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardSetCardTypeProviderName](https://github.com/dahall/Vanara/search?l=C%23&q=SCardSetCardTypeProviderName)  
[SCardStatus](https://www.google.com/search?num=5&q=SCardStatusA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardStatus](https://github.com/dahall/Vanara/search?l=C%23&q=SCardStatus)  
[SCardTransmit](https://www.google.com/search?num=5&q=SCardTransmit+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardTransmit](https://github.com/dahall/Vanara/search?l=C%23&q=SCardTransmit)  
[SCardUIDlgSelectCardA](https://www.google.com/search?num=5&q=SCardUIDlgSelectCardA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardUIDlgSelectCard](https://github.com/dahall/Vanara/search?l=C%23&q=SCardUIDlgSelectCard)  
[SCardUIDlgSelectCardW](https://www.google.com/search?num=5&q=SCardUIDlgSelectCardW+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardUIDlgSelectCard](https://github.com/dahall/Vanara/search?l=C%23&q=SCardUIDlgSelectCard)  
[SCardWriteCache](https://www.google.com/search?num=5&q=SCardWriteCacheA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCardWriteCache](https://github.com/dahall/Vanara/search?l=C%23&q=SCardWriteCache)  
### Enumerations  
Native Enum | Header | Managed Enum  
--- | --- | ---  
[SC_DLG](https://www.google.com/search?num=5&q=SC_DLG+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SC_DLG](https://github.com/dahall/Vanara/search?l=C%23&q=SC_DLG)  
[SCARD_ACTION](https://www.google.com/search?num=5&q=SCARD_ACTION+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCARD_ACTION](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_ACTION)  
[SCARD_AUDIT_CHV](https://www.google.com/search?num=5&q=SCARD_AUDIT_CHV+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCARD_AUDIT_CHV](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_AUDIT_CHV)  
[SCARD_POWER](https://www.google.com/search?num=5&q=SCARD_POWER+site%3Alearn.microsoft.com) | winsmcrd.h | [Vanara.PInvoke.WinSCard.SCARD_POWER](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_POWER)  
[SCARD_PROTOCOL](https://www.google.com/search?num=5&q=SCARD_PROTOCOL+site%3Alearn.microsoft.com) | winsmcrd.h | [Vanara.PInvoke.WinSCard.SCARD_PROTOCOL](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_PROTOCOL)  
[SCARD_PROVIDER](https://www.google.com/search?num=5&q=SCARD_PROVIDER+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCARD_PROVIDER](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_PROVIDER)  
[SCARD_READER](https://www.google.com/search?num=5&q=SCARD_READER+site%3Alearn.microsoft.com) | winsmcrd.h | [Vanara.PInvoke.WinSCard.SCARD_READER](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_READER)  
[SCARD_READER_STATE](https://www.google.com/search?num=5&q=SCARD_READER_STATE+site%3Alearn.microsoft.com) | winsmcrd.h | [Vanara.PInvoke.WinSCard.SCARD_READER_STATE](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_READER_STATE)  
[SCARD_READER_TYPE](https://www.google.com/search?num=5&q=SCARD_READER_TYPE+site%3Alearn.microsoft.com) | winsmcrd.h | [Vanara.PInvoke.WinSCard.SCARD_READER_TYPE](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_READER_TYPE)  
[SCARD_SCOPE](https://www.google.com/search?num=5&q=SCARD_SCOPE+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCARD_SCOPE](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_SCOPE)  
[SCARD_SHARE](https://www.google.com/search?num=5&q=SCARD_SHARE+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCARD_SHARE](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_SHARE)  
[SCARD_STATE](https://www.google.com/search?num=5&q=SCARD_STATE+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCARD_STATE](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_STATE)  
### Structures  
Native Structure | Header | Managed Structure  
--- | --- | ---  
[OPENCARD_SEARCH_CRITERIA](https://www.google.com/search?num=5&q=OPENCARD_SEARCH_CRITERIA+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.OPENCARD_SEARCH_CRITERIA](https://github.com/dahall/Vanara/search?l=C%23&q=OPENCARD_SEARCH_CRITERIA)  
[OPENCARDNAME](https://www.google.com/search?num=5&q=OPENCARDNAME+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.OPENCARDNAME](https://github.com/dahall/Vanara/search?l=C%23&q=OPENCARDNAME)  
[OPENCARDNAME_EX](https://www.google.com/search?num=5&q=OPENCARDNAME_EX+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.OPENCARDNAME_EX](https://github.com/dahall/Vanara/search?l=C%23&q=OPENCARDNAME_EX)  
[SCARD_ATRMASK](https://www.google.com/search?num=5&q=SCARD_ATRMASK+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCARD_ATRMASK](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_ATRMASK)  
[SCARD_IO_REQUEST](https://www.google.com/search?num=5&q=SCARD_IO_REQUEST+site%3Alearn.microsoft.com) | Winsmcrd.h | [Vanara.PInvoke.WinSCard.SCARD_IO_REQUEST](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_IO_REQUEST)  
[SCARD_READERSTATE](https://www.google.com/search?num=5&q=SCARD_READERSTATE+site%3Alearn.microsoft.com) | winscard.h | [Vanara.PInvoke.WinSCard.SCARD_READERSTATE](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_READERSTATE)  
[SCARD_RET](https://www.google.com/search?num=5&q=SCARD_RET+site%3Alearn.microsoft.com) |  | [Vanara.PInvoke.WinSCard.SCARD_RET](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_RET)  
[SCARD_T0_COMMAND](https://www.google.com/search?num=5&q=SCARD_T0_COMMAND+site%3Alearn.microsoft.com) | Winsmcrd.h | [Vanara.PInvoke.WinSCard.SCARD_T0_COMMAND](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_T0_COMMAND)  
[SCARD_T0_REQUEST](https://www.google.com/search?num=5&q=SCARD_T0_REQUEST+site%3Alearn.microsoft.com) | Winsmcrd.h | [Vanara.PInvoke.WinSCard.SCARD_T0_REQUEST](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_T0_REQUEST)  
[SCARD_T1_REQUEST](https://www.google.com/search?num=5&q=SCARD_T1_REQUEST+site%3Alearn.microsoft.com) | Winsmcrd.h | [Vanara.PInvoke.WinSCard.SCARD_T1_REQUEST](https://github.com/dahall/Vanara/search?l=C%23&q=SCARD_T1_REQUEST)  
[SCARDHANDLE](https://www.google.com/search?num=5&q=SCARDHANDLE+site%3Alearn.microsoft.com) |  | [Vanara.PInvoke.WinSCard.SCARDHANDLE](https://github.com/dahall/Vanara/search?l=C%23&q=SCARDHANDLE)  
### Classes  
Native Class | Header | Managed Class  
--- | --- | ---  
[SafeSCARDHANDLE](https://www.google.com/search?num=5&q=SafeSCARDHANDLE+site%3Alearn.microsoft.com) |  | [Vanara.PInvoke.WinSCard.SafeSCARDHANDLE](https://github.com/dahall/Vanara/search?l=C%23&q=SafeSCARDHANDLE)  
