winscard.h header

This header is used by Security and Identity. For more information, see:

Functions

Title Description
GetOpenCardNameA The GetOpenCardName function displays the smart card "select card" dialog box.
GetOpenCardNameW The GetOpenCardName function displays the smart card "select card" dialog box.
SCardAccessStartedEvent Returns an event handle when an event signals that the smart card resource manager is started.
SCardAddReaderToGroupA Adds a reader to a reader group.
SCardAddReaderToGroupW Adds a reader to a reader group.
SCardAudit Writes event messages to the Windows application log Microsoft-Windows-SmartCard-Audit/Authentication.
SCardBeginTransaction Starts a transaction.
SCardCancel Terminates all outstanding actions within a specific resource manager context.
SCardConnectA Establishes a connection (using a specific resource manager context) between the calling application and a smart card contained by a specific reader. If no card exists in the specified reader, an error is returned.
SCardConnectW Establishes a connection (using a specific resource manager context) between the calling application and a smart card contained by a specific reader. If no card exists in the specified reader, an error is returned.
SCardControl Gives you direct control of the reader. You can call it any time after a successful call to SCardConnect and before a successful call to SCardDisconnect.
SCardDisconnect Terminates a connection previously opened between the calling application and a smart card in the target reader.
SCardEndTransaction Completes a previously declared transaction, allowing other applications to resume interactions with the card.
SCardEstablishContext Establishes the resource manager context (the scope) within which database operations are performed.
SCardForgetCardTypeA Removes an introduced smart card from the smart card subsystem.
SCardForgetCardTypeW Removes an introduced smart card from the smart card subsystem.
SCardForgetReaderA Removes a previously introduced reader from control by the smart card subsystem. It is removed from the smart card database, including from any reader group that it may have been added to.
SCardForgetReaderGroupA Removes a previously introduced smart card reader group from the smart card subsystem. Although this function automatically clears all readers from the group, it does not affect the existence of the individual readers in the database.
SCardForgetReaderGroupW Removes a previously introduced smart card reader group from the smart card subsystem. Although this function automatically clears all readers from the group, it does not affect the existence of the individual readers in the database.
SCardForgetReaderW Removes a previously introduced reader from control by the smart card subsystem. It is removed from the smart card database, including from any reader group that it may have been added to.
SCardFreeMemory Releases memory that has been returned from the resource manager using the SCARD_AUTOALLOCATE length designator.
SCardGetAttrib Retrieves the current reader attributes for the given handle. It does not affect the state of the reader, driver, or card.
SCardGetCardTypeProviderNameA Returns the name of the module (dynamic link library) that contains the provider for a given card name and provider type.
SCardGetCardTypeProviderNameW Returns the name of the module (dynamic link library) that contains the provider for a given card name and provider type.
SCardGetDeviceTypeIdA Gets the device type identifier of the card reader for the given reader name. This function does not affect the state of the reader.
SCardGetDeviceTypeIdW Gets the device type identifier of the card reader for the given reader name. This function does not affect the state of the reader.
SCardGetProviderIdA Returns the identifier (GUID) of the primary service provider for a given card.
SCardGetProviderIdW Returns the identifier (GUID) of the primary service provider for a given card.
SCardGetReaderDeviceInstanceIdA Gets the device instance identifier of the card reader for the given reader name. This function does not affect the state of the reader.
SCardGetReaderDeviceInstanceIdW Gets the device instance identifier of the card reader for the given reader name. This function does not affect the state of the reader.
SCardGetReaderIconA Gets an icon of the smart card reader for a given reader's name.
SCardGetReaderIconW Gets an icon of the smart card reader for a given reader's name.
SCardGetStatusChangeA Blocks execution until the current availability of the cards in a specific set of readers changes.
SCardGetStatusChangeW Blocks execution until the current availability of the cards in a specific set of readers changes.
SCardGetTransmitCount Retrieves the number of transmit operations that have completed since the specified card reader was inserted.
SCardIntroduceCardTypeA Introduces a smart card to the smart card subsystem (for the active user) by adding it to the smart card database.
SCardIntroduceCardTypeW Introduces a smart card to the smart card subsystem (for the active user) by adding it to the smart card database.
SCardIntroduceReaderA Introduces a new name for an existing smart card reader.
SCardIntroduceReaderGroupA Introduces a reader group to the smart card subsystem. However, the reader group is not created until the group is specified when adding a reader to the smart card database.
SCardIntroduceReaderGroupW Introduces a reader group to the smart card subsystem. However, the reader group is not created until the group is specified when adding a reader to the smart card database.
SCardIntroduceReaderW Introduces a new name for an existing smart card reader.
SCardIsValidContext Determines whether a smart card context handle is valid.
SCardListCardsA Searches the smart card database and provides a list of named cards previously introduced to the system by the user.
SCardListCardsW Searches the smart card database and provides a list of named cards previously introduced to the system by the user.
SCardListInterfacesA Provides a list of interfaces supplied by a given card.
SCardListInterfacesW Provides a list of interfaces supplied by a given card.
SCardListReaderGroupsA Provides the list of reader groups that have previously been introduced to the system.
SCardListReaderGroupsW Provides the list of reader groups that have previously been introduced to the system.
SCardListReadersA Provides the list of readers within a set of named reader groups, eliminating duplicates.
SCardListReadersW Provides the list of readers within a set of named reader groups, eliminating duplicates.
SCardListReadersWithDeviceInstanceIdA Gets the list of readers that have provided a device instance identifier. This function does not affect the state of the reader.
SCardListReadersWithDeviceInstanceIdW Gets the list of readers that have provided a device instance identifier. This function does not affect the state of the reader.
SCardLocateCardsA Searches the readers listed in the rgReaderStates parameter for a card with an ATR string that matches one of the card names specified in mszCards, returning immediately with the result.
SCardLocateCardsByATRA Searches the readers listed in the rgReaderStates parameter for a card with a name that matches one of the card names contained in one of the SCARD_ATRMASK structures specified by the rgAtrMasks parameter.
SCardLocateCardsByATRW Searches the readers listed in the rgReaderStates parameter for a card with a name that matches one of the card names contained in one of the SCARD_ATRMASK structures specified by the rgAtrMasks parameter.
SCardLocateCardsW Searches the readers listed in the rgReaderStates parameter for a card with an ATR string that matches one of the card names specified in mszCards, returning immediately with the result.
SCardReadCacheA Retrieves the value portion of a name-value pair from the global cache maintained by the Smart Card Resource Manager.
SCardReadCacheW Retrieves the value portion of a name-value pair from the global cache maintained by the Smart Card Resource Manager.
SCardReconnect Reestablishes an existing connection between the calling application and a smart card.
SCardReleaseContext Closes an established resource manager context, freeing any resources allocated under that context, including SCARDHANDLE objects and memory allocated using the SCARD_AUTOALLOCATE length designator.
SCardReleaseStartedEvent Decrements the reference count for a handle acquired by a previous call to the SCardAccessStartedEvent function.
SCardRemoveReaderFromGroupA Removes a reader from an existing reader group. This function has no effect on the reader.
SCardRemoveReaderFromGroupW Removes a reader from an existing reader group. This function has no effect on the reader.
SCardSetAttrib Sets the given reader attribute for the given handle.
SCardSetCardTypeProviderNameA Specifies the name of the module (dynamic link library) containing the provider for a given card name and provider type.
SCardSetCardTypeProviderNameW Specifies the name of the module (dynamic link library) containing the provider for a given card name and provider type.
SCardStatusA Provides the current status of a smart card in a reader.
SCardStatusW Provides the current status of a smart card in a reader.
SCardTransmit Sends a service request to the smart card and expects to receive data back from the card.
SCardUIDlgSelectCardA Displays the smart card Select Card dialog box.
SCardUIDlgSelectCardW Displays the smart card Select Card dialog box.
SCardWriteCacheA Writes a name-value pair from a smart card to the global cache maintained by the Smart Card Resource Manager.
SCardWriteCacheW Writes a name-value pair from a smart card to the global cache maintained by the Smart Card Resource Manager.

Structures

Title Description
OPENCARD_SEARCH_CRITERIAA The OPENCARD_SEARCH_CRITERIA structure is used by the SCardUIDlgSelectCard function in order to recognize cards that meet the requirements set forth by the caller. You can, however, call SCardUIDlgSelectCard without using this structure.
OPENCARD_SEARCH_CRITERIAW The OPENCARD_SEARCH_CRITERIA structure is used by the SCardUIDlgSelectCard function in order to recognize cards that meet the requirements set forth by the caller. You can, however, call SCardUIDlgSelectCard without using this structure.
OPENCARDNAME_EXA The OPENCARDNAME_EX structure contains the information that the SCardUIDlgSelectCard function uses to initialize a smart card Select Card dialog box.
OPENCARDNAME_EXW The OPENCARDNAME_EX structure contains the information that the SCardUIDlgSelectCard function uses to initialize a smart card Select Card dialog box.
OPENCARDNAMEA Contains the information that the GetOpenCardName function uses to initialize a smart card Select Card dialog box.
OPENCARDNAMEW Contains the information that the GetOpenCardName function uses to initialize a smart card Select Card dialog box.
SCARD_ATRMASK Used by the SCardLocateCardsByATR function to locate cards.
SCARD_READERSTATEA Used by functions for tracking smart cards within readers.
SCARD_READERSTATEW Used by functions for tracking smart cards within readers.