Windows CE Networking Team WebLog

Windows CE Networking - from NDIS to TCP to SOAP to VOIP and everything in between.

Smartcards on Windows Mobile 5

Starting with Window Mobile 5 the SCRM is included in the default configuration. This means when you purchase a smartcard reader for WM 2005 you will be able to access it using the SCard APIs that are exported from winscard.lib. The SCRM on Windows Mobile is API compatible with the desktop version  so if you have desktop smartcard code it should just work on WM 2005.  If you have smartcard questions, feel free to post them here or on the newsgroups.

[Author:Igor Dvorkin]
Published Thursday, June 16, 2005 1:09 PM by cenet

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Francis Ho said:

I am writing a program that use the SCard API on Windows Mobile 2003/2005. I compile the program using Visual Studio 2005. It could not locate the "WinSCard.lib" file. I also tried on Microsoft eMbedded Visual C++, Version 4. I have the same problem. Both compilers have WinSCard.h file in their include folder; but not the WinSCard.lib file.

Where can I find the WinSCard.lib file?

Thanks,
June 22, 2005 3:20 PM
 

Igor Dvorkin said:

winscard.lib is only present when using Windows Mobile 5.0 projects.

On my machine the lib is at:

C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Lib\AR
MV4I>
June 22, 2005 6:22 PM
 

Yannick Chamming's said:

Can the smartcard API be backported to WM2003 ?
July 12, 2005 1:45 AM
 

Mik said:

OK, but where does one get readers for the average Windows Mobile 5 device? Is there a reader I can insert in my device?
December 20, 2005 7:47 PM
 

anlai said:

I have a usb smart card reader and i have the driver for windows 2000/xp.
how can i make it work under windows mobile 5?
what works should i do?
Does windows mobile 5 have DDK like windows 2000/xp?
the USB functions work similiar with 2000/xp?
June 7, 2006 10:47 PM
 

Ramesh said:

I just want to know how the smartcard works with WM 5.0 and and where to punch the SC on WM. I cannot see any spave to punch the card.
June 29, 2006 5:11 PM
 

Neeraj said:

Can you please give me the details from Basic about how the smart card work logically and physically with WM 5.0.

Thanks in advance
June 29, 2006 5:14 PM
 

Jenita said:

I'm a novice in Smartcard application.  I wrote an application for PSION terminal using winSCard.dll in C# and try to convert it to WinCE.  The APIs which are working in C# version is not working in WinCE especially the SCardEstablishContext().   The following is the syntax that I'm using.  

[DllImport("WinScard.dll")]
Public static extern int SCardEstablishContext(uint dwScope, int nNotUsed1, int nNotUsed2, ref int phContext);

While executing it in a emulator (Visual Studio 2003 emulator) it gives "MissingMethodException" error for SCardEstablishContext().  Can you help me in using the WinScard.dll in WinCE 4.2?
August 11, 2006 5:01 AM
 

davidnavo said:

We are trying to evaluate/redevelop a secured access solution based in Windows mobile & smartcard readers.

Do you know if there is any pocketpc with a smartcard reader integrated ?

Can you recomend me one or a pair to make the tests (if your are developing with this devices, just a good one) ?

Thanks a lot,

David.

June 21, 2007 5:27 AM
 

Shanar said:

Hi,

I have a devise which uses windows ce 5 and its smartcard reader is pcsc.

I can successfully use winscard.dll functions to connect to card and exchange apdu with my card. but when I want to read cardreaders name with SCardListReaders function I recieve a notsupportedexeption.

this is the vb.net code that I use to read this devices reader name :

      Dim strReaders As String

       strReaders = New String(vbNullChar, 2048)

       Dim f As Integer = 2048

       lngResult = CardFunctions.EstablishContext(lngContext)

/// lngResult gets  0 in return from establishContext

       lngResult = SCardListReaders(lngContext, vbNullString, strReaders, f)

does windoes ce 5 supports SCardListReaders  function ?

I'll appreciate any help

Best Regards,

Shanar

January 12, 2009 7:14 AM

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required
Submit

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker