SCardIntroduceCardType

This function introduces a smart card to the smart card subsystem for the active user by adding it to the smart card database.

LONG SCardIntroduceCardType(
IN SCARDCONTEXT hContext, 
IN LPCTSTR szCardName, 
IN LPGUID pguidPrimaryProvider, 
IN LPGUID rgguidInterfaces, 
IN DWORD dwInterfaceCount, 
IN LPCBYTE pbAtr, 
IN LPCBYTE pbAtrMask, 
IN DWORD cbAtrLen );

Parameters

  • hContext
    Handle to the resource manager context. The resource manager context is set by a previous call to SCardEstablishContext.
  • szCardName
    Null-terminated string that contains the name by which a user can recognize the card.
  • pguidPrimaryProvider
    Pointer to the globally unique identifier (GUID) for the primary service provider of the smart card.
  • rgguidInterfaces
    Supplies an array of GUIDs that identify the interfaces supported by the smart card.
  • dwInterfaceCount
    Specifies the number of identifiers in the rgguidInterfaces array.
  • pbAtr
    Pointer to an Automatic Terminal Recognition (ATR) string that can be used for matching purposes when querying the smart card database (see SCardListCards). The length of this string is determined by standard ATR parsing.
  • pbAtrMask
    Pointer to an optional bit mask to use when comparing the ATRs of smart cards to the ATR supplied in pbAtr. If this value is non-NULL, it must point to a string of bytes the same length as the ATR string supplied in pbAtr. When a specified ATR string 'A' is compared to the ATR supplied in pbAtr, it matches if and only if A & M = pbAtr, where M is the supplied mask and & represents bitwise logical AND.
  • cbAtrLen
    Count of bytes that represent the length of the ATR and optional ATR mask. If this value is 0, then the length of the ATR is determined by standard ATR parsing.

Return Values

Value Description
Succeeds SCARD_S_SUCCESS
Fails An error value (see Smart Card Error values for a list of all error values)

Remarks

SCardIntroduceCardType is a database management function.

To remove a smart card, see SCardForgetCardType.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 3.0 and later Winscard.h   Winscard.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

SCardEstablishContext, SCardForgetCardType, SCardIntroduceReader, SCardListCards

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.