Hi,
I need to sign a file with certificate from smart card. Format should be PKCS7 (.p7s), and I try to do it with wcrypt2.pas (from Jedi portal), but

Could you tell me where can I see example to get a certificate and sign file.

If I understood good, I should use this functions:
CryptAcquireContext()
CryptCreateHash()
CryptEncryptMessage()
But I can't get private key from smart card, and signing always show error...

I'm using delphi XE.