OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Pavel Hrdina (paulCOMPELSON.COM)
Date: Fri Nov 09 2001 - 14:36:09 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    If you look at the last argument of SCardConnect
    (ActiveProtocol) it should be evident that the card
    must be:
    1.) present (and swallowed in PC/SC terminology)
    2.) powered
    3.) in specific mode (protocol has already been selected)
    So the only value which implies those three points
    simultaneously is SCARD_SPECIFIC.

    Is it clear to you now ?

    Paul

    PS: If you look into winsmcrd.h you can see that the
    SCARD_PRESENT is below SCARD_POWERED, so the card in
    that state is not yet powered.

    -----Original Message-----
    From: SmartCardDDK [mailto:SmartCardDDKDISCUSS.MICROSOFT.COM]On Behalf
    Of SUBSCRIBE SmartCardSDK yueweng
    Sent: Friday, November 09, 2001 7:49 AM
    To: SmartCardDDKDISCUSS.MICROSOFT.COM
    Subject: SCARD_SPECIFIC or SCARD_PRESENT

    Dear all,
    I have a simple question which I don't really understand:

    What is the value of ReaderCapabilities.CurrentState when the user calls
    ScardTransmit() and ScardStatus() to the driver. Is the value suppose to
    be SCARD_SPECIFIC OR SCARD_PRESENT????

    Thanks for all in advance!

    Regards,
    YueWeng