This sample shows how the function LogonUser can be called in order to authenticate a user with a certificate on a smart card.
Here is the source : SmartCardLogon.cpp
The Cryptology ePrint Archive provides rapid access to recent research in cryptology. It's hosted by the International Association for Cryptologic Research. The latest articles can be accessed by clicking here.