My users have a PKI card and a card reader. There is a private key on the PKI card and they must install the associated certificate. Certificate must be selected in the application and this is where the problem arises because some people choose the wrong certificate.
The question is how to read certificate purposes ? I need this line: Smart Card Logon.
Thanks in advance.
I tried: CertGetCertificateContextProperty CertOpenStore
and few other function but without success.
