Process context blocked in SCardConnect RRS feed

  • Question

  • Hi All,

    I am trying to take a certificate (smart card logon certificate) via
    "Microsoft Base Smart Card Crypto Provider" by using the sc mini
    driver (CardModule). If the context is acquired by the "Microsoft Base
    Smart Card Crypto Provider" and some other application try to call
    SCardConnect, it gets blocked inside it. It neither returns error nor
    success. If i remove the token/smart card,  SCardConnect returns with
    an error.

    can any body explain the reason for this blocking?

    Amit Goel
    Safenet Noida
    Tuesday, January 15, 2008 9:17 AM

All replies

  • Hello,


    This is my assumption of what is going on...


    The base CSP will do SCardConnect to the smart card and then it will start a new transaction by calling SCardBeginTransaction. This call will give the CSP exclusive access to the smart card until the CSP calls SCardEndTransaction. So, you will not be able to access the smart card until the CSP has completed its current transaction.


    You will have to create your own vendor specific CSP to be able to control the smart card access.


    Again, this is my guess of what is happening.




    Wednesday, March 5, 2008 8:30 AM