Platform SDK: Smart Card Enrollment Control |
The getCertTemplateSMIME method is used to determine if a certificate template contains the szOID_PKIX_KP_EMAIL_PROTECTION key usage. If this key usage is part of the certificate template, the certificate template supports S/MIME operations.
objSCEnroll.getCertTemplateSMIME( _ bstrCertTemplateName As String ) As Long
Long value of 1 if bstrCertTemplateName supports S/MIME; otherwise 0.
The constant for szOID_PKIX_KP_EMAIL_PROTECTION is defined in wincrypt.h.
Dim lSMIME ' strCTName is a certificate template name, such as ' "ExchangeUser". lSMIME = Senroll.getCertTemplateSMIME(strCTName) ' Use lSMIME as needed.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Library: Included as a resource in Scrdenrl.dll.