Re: Smart card CSP register into Win2000

From: Carlos Lopez (clopezonline_at_microsoft.com)
Date: 03/04/04


Date: Thu, 04 Mar 2004 22:02:09 GMT

Hi Heng,

I'm not sure why SCardIntroduceCardType would fail with error 108.

Let me explain how Winlogon works.

Winlogon creates a thread to monitor smartcard insertions. When someone
inserts a smartcard, the Winlogon thread calls SCardListCards. If that
succeeds it calls SCardGetCardTypeProviderName to get the CSP provider. As
long as SCardListCards and SCardGetCardTypeProviderName work, Winlogon
should find your CSP.

thanks
Carlos

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Thread-Topic: Smart card CSP register into Win2000
| thread-index: AcQCKx6LlFC14fH4Q3GGfHddyHRuvg==
| X-Tomcat-NG: microsoft.public.platformsdk.security
| From: "=?Utf-8?B?aGVuZ2h1ZWk=?=" <henghuei@yahoo.com>
| References: <03EE137C-F33E-45D8-8C5D-5296C350583F@microsoft.com>
<u71cBNP#DHA.3496@TK2MSFTNGP10.phx.gbl>
<1B47EE57-40E7-4B01-B1EB-5463173120BB@microsoft.com>
<Ez1$Uu0#DHA.1184@cpmsftngxa10.phx.gbl>
<1F26E303-504B-491E-A5A7-5B4E2DFAA64A@microsoft.com>
<ezo660E$DHA.3232@TK2MSFTNGP10.phx.gbl>
<B44395AD-F6C3-4958-A8EA-BA258A6EEB61@microsoft.com>
<SpE2FT7$DHA.3792@cpmsftngxa06.phx.gbl>
| Subject: Re: Smart card CSP register into Win2000
| Date: Thu, 4 Mar 2004 12:56:09 -0800
| Lines: 19
| Message-ID: <61D71183-A43D-4A23-A3EE-B2C072B7364D@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.platformsdk.security
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.platformsdk.security:5858
| NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
| X-Tomcat-NG: microsoft.public.platformsdk.security
|
| Yes. I did call SCardSetCardTypeProviderName to register my Smart Card
CSP.
I used MS CSPDK's autoreg.cpp to register my CSP in Win2000 server.

Here is a function call in my autoreg.cpp.
     pfSetCardTypeProviderName =
        (LPSETCARDTYPEPROVIDERNAME)GetProcAddress(
         hWinSCard,
         TEXT("SCardSetCardTypeProviderNameA"));

     dwStatus = (*pfSetCardTypeProviderName)(
                         NULL,
                         l_szCardName,
                         SCARD_PROVIDER_PRIMARY,
                         l_szProviderName);

I need to call SCardIntroduceCardType before calling
SCardSetCardTypeProviderNameA, right? But it is very strange when I
called SCardIntroduceCardType I got 108 returned. Is that normal?
|


Quantcast