SCardSetCardTypeProviderName

This function specifies the name of the module (dynamic link library) containing the provider for a given card name and provider type.

LONG SCardSetCardTypeProviderName(
IN SCARDCONTEXT hContext,
IN LPCTSTR szCardName,
IN DWORD dwProviderId,
IN LPCTSTR szProvider );

Parameters

  • hContext
    Supplies the handle that identifies the resource manager context. The resource manager context can be set by a previous call to SCardEstablishContext. This value can be NULL if the call to SCardSetCardTypeProviderName is not directed to a specific context.

  • szCardName
    Supplies the name of the card type with which this provider name is associated.

  • dwProviderId
    Supplies the identifier for the provider associated with this card type. The value provided for dwProviderId can be one of the following.

    Value Action
    SCARD_PROVIDER_PRIMARY The function specifies the name of the primary smart card service provider as a GUID string.
    SCARD_PROVIDER_CSP The function specifies the name of the cryptographic service provider.
  • szProvider
    String variable being assigned as the provider name, representing the cryptographic service provider (CSP).

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

This function sets the provider name, while SCardGetCardTypeProviderName can be used to retrieve the provider name.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.