.NET
  Home arrow .NET arrow Page 2 - Smart Cards in .NET
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
.NET

Smart Cards in .NET
By: Digvijay Chauhan
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 100
    2004-03-15

    Table of Contents:
  • Smart Cards in .NET
  • The Solution
  • Three More Methods
  • A New Reference
  • The Code

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Smart Cards in .NET - The Solution


    (Page 2 of 5 )

    I have used ATL to develop the component but anyone using the component need not know any COM or ATL details.  If you know them it’s a plus because you can modify the component to suit your needs. I’ve tried to encapsulate enough of the WinSCard API to write a Smart Card enabled application, but there are too many possibilities. So I’ve provided the source code to the component that you can modify and use. Also provided is a sample MFC application, another  in Visual Basic 6.0 and a .NET application that successfully uses the WinSCard.dll to communicate to the Smart Card Reader.

    As a plus it's implemented as a Dual interface so even scripting clients, like JScript and VB Script, can use it.

    All the workings are encapsulated in a single class CPCSCReader, exposing a single interface IPCSCReader.The Class Diagram is displayed below:

    Smart Cards
     
    Figure 1 The CPCSCReader Class

    As one can infer from the class Diagram there are two public properties that can be used to identify whether the reader has a card in it and whether it is powered on. I’ve provided a constructor other than the default constructor, which only accepts reader name as its parameter. There are eight other public methods that can be used to communicate with the smart card reader and manage the UI notifications displayed to the user of the application.

    More .NET Articles
    More By Digvijay Chauhan


     

    .NET ARTICLES

    - The Transformed XML Explorer in MFC
    - List Control and Property Grid with the MFC ...
    - Font, Shell and Masked Edit Controls for MFC
    - Color, Link and Image Editor Controls for M...
    - New Controls for MFC
    - The Windows Ribbon Framework
    - Markup Language for the Ribbon Framework
    - Visually Upgrade Your MFC Project
    - New Features for the Statusbar in MFC
    - Working with the Statusbar in MFC
    - Iron Speed Design v60 Review
    - Binary and XML Serialization
    - Using CrystalReportViewer to Display Crystal...
    - Creating Summary .Net Crystal Reports
    - More on Commands, Input and the WPF





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    Stay green...Green IT