SCardTransmit call with unknown return length

alexsd_at_gmail.com
Date: 11/29/05


Date: 29 Nov 2005 12:14:09 -0800

I am writing an application for use with Philips' DESFire cards.

When attempting to retrieve file settings, without knowing the file
type, I am unable to pass the correct length to the SCardTransmit call
because each file type returns different setting lengths.

When I pass a 0 into the pcbRecvLength parameter of the SCardTransmit
the correct length is returned depending on the file type, but no data
is returned in the pbRecvBuffer ouput parameter.

Is there a way to return data using SCardTransmit if you don't know the
exact return length before the call?