OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Eric Perlin (ericperl_at_WINDOWS.MICROSOFT.COM)
Date: Thu Feb 27 2003 - 19:08:53 CST

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

    Which SDK is this?

    This call doesn't make any sense.
    You should remove it.

    The correct way to do what they are trying to do is to OR
    SCARD_PROTOCOL_DEFAULT with the protocols in the dwPreferredProtocols
    parameter of SCardConnect.
    This should only be done to resolve compatibility issues with readers
    and cards allowing higher data rates.

    Eric Perlin [MS]

    -----Original Message-----
    From: Thomas C. Mobley [mailto:TomTheLibertarianHOTMAIL.COM]
    Sent: Thursday, February 27, 2003 2:29 PM
    To: SmartCardSDKDISCUSS.MICROSOFT.COM
    Subject: Re: Network request not supported errorlog entry

    I'm supposed to put fingerprints on smartcards. I have done this with 3
    other types of cards/readers just using straight serial communications,
    but
    they now want me to use pc/sc. I loaded the sdk and used the vb demo
    (SCrdVB) just to get started, so this is all sdk code so far. When I
    checked the code I noted that the call is followed by the following
    curious
    catch...

        If ERROR_NOT_SUPPORTED = lngResult Then
            ' expected result, should not be able to change data rate
            lngResult = SCARD_S_SUCCESS
        End If
    Any idea why they would do this? Am I going in the wrong direction?

    ----- Original Message -----
    From: "Eric Perlin" <ericperlWINDOWS.MICROSOFT.COM>
    To: <SmartCardSDKDISCUSS.MICROSOFT.COM>
    Sent: Thursday, February 27, 2003 4:30 PM
    Subject: Re: Network request not supported errorlog entry

    SCardSetAttrib with SCARD_ATTR_DEFAULT_DATA_RATE is invalid (see MSDN).
    What are you tring to accomplish?

    Eric Perlin [MS]

    -----Original Message-----
    From: Thomas C. Mobley [mailto:TomTheLibertarianHOTMAIL.COM]
    Sent: Thursday, February 27, 2003 12:23 PM
    To: SmartCardSDKDISCUSS.MICROSOFT.COM
    Subject: Re: Network request not supported errorlog entry

    But the app isn't failing, and I get no errors in the app. I just found
    that I had these errors accumulating in my system event log. SCardSvr
    is
    throwing it, and it seems to happen when I call SCardSetAttrib using
    SCARD_ATTR_DEFAULT_DATA_RATE, so you may have something there.

    Thanks

    ----- Original Message -----
    From: "Eric Perlin" <ericperlWINDOWS.MICROSOFT.COM>
    To: <SmartCardSDKDISCUSS.MICROSOFT.COM>
    Sent: Thursday, February 27, 2003 2:51 PM
    Subject: Re: Network request not supported errorlog entry

        50 ERROR_NOT_SUPPORTED <--> 0xc00000bb STATUS_NOT_SUPPORTED
    Is the error corresponding to this message. The error makes sense and
    the message doesn't.
    I believe the ioctl is IOCTL_SMARTCARD_SET_PROTOCOL
    Your card probably supports higher speeds than the default 9600 and the
    driver can't handle changing it.
    It should only affect the performance of the app.

    Since your app fails, maybe the error is bad enough that the entire
    thing dies...

    Winscard.dll is the SC subsystem client.
    Scardssp.dll uses it (it offers some kind of abstraction layer on top of
    winscard.dll)

    Eric Perlin [MS]

    -----Original Message-----
    From: Thomas Mobley [mailto:TomTheLibertarianHOTMAIL.COM]
    Sent: Thursday, February 27, 2003 10:30 AM
    To: SmartCardSDKDISCUSS.MICROSOFT.COM
    Subject: Network request not supported errorlog entry

    Hi. I have programmed a number of smartcards, but always through serial
    communications. I have been tasked to use pc/sc with a gemplus 410
    reader,
    so I pulled the vb demo app from the sdk and it seems to run fine. I
    noticed though that I have errors accumulating in my event log stating
    that "smart card reader gemplus gcr410p 0 rejected ioctl ox31000c: the
    network request is not supported."

    Does anyone know what this means?

    Also, the example uses winscard.dll. It worked fine until after I
    installed the gemplus drivers, and then it failed on card calls but
    still
    passed on reader calls. I changed back to the microsoft driver and it
    now
    passes again on the card calls.

    And lastly, I am able to add scardssp.dll to my vb references, but
    unable
    to use it as it doesn't seem compatable with vb. Does the winscard api
    use
    scardspp so that I can just use winscard?

    Appreciate any assistance.

    Thomas Mobley
    BioMetric Solutions Group