Closing down a hierarchy of modal windows nicely

C

Chukkalove

Michael C said:
Out of curiosity does this poll the drive to see if the media has been
removed or is there some API call for this? See my reply to Dave for
closing the forms.

Michael
I use WinSCard API and poll the driver for its status every few seconds for
the presence of a card
We're using ACR38 card readers using PC/SC drivers

[DllImport(DllName, EntryPoint="SCardGetStatusChangeA")]
public static extern int SCardGetStatusChange(
Int32 hContext,
Int32 TimeOut,
ref SCARD_READERSTATE readerstate,
Int32 ReaderCount);
 
M

Michael C

Chukkalove said:
I use WinSCard API and poll the driver for its status every few seconds
for the presence of a card
We're using ACR38 card readers using PC/SC drivers

Is this a windows CE only api?
[DllImport(DllName, EntryPoint="SCardGetStatusChangeA")]
public static extern int SCardGetStatusChange(
Int32 hContext,
Int32 TimeOut,
ref SCARD_READERSTATE readerstate,
Int32 ReaderCount);
 
C

Chukkalove

Michael C said:
Is this a windows CE only api?

No, its the official Windows smart card reader api for using with USB PC/SC
compatible smart card reader/writers.

You also need PC/SC compatible drivers provided by card writer hardware
manufacturers. Some of the functions within it are generic across any
reader, others require knowledge of specific card types and specifications
for reading/writing from card reader/writer manufacturers. What I mean by
that is that I had to obtain instructions and examples for writing
specifically to the ACR38.
I was hoping that it could be used transparently and the manufacturers
driver would handle differences in implementation but it didn't work like
that.


http://msdn.microsoft.com/msdnmag/issues/06/11/SmartStorage/default.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top