Upravit

Sdílet prostřednictvím


ISCrdEnr::getCertTemplateSMIME method

The getCertTemplateSMIME method is used to determine whether 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 Secure/Multipurpose Internet Mail Extensions (S/MIME) operations.

Syntax

HRESULT getCertTemplateSMIME(
  [in]  BSTR      bstrCertTemplateName,
  [out] DWORD *pdwCertTemplateSMIME
);

SCrdEnr.getCertTemplateSMIME( _
  ByVal bstrCertTemplateName, _
  ByRef pdwCertTemplateSMIME _
)

Parameters

bstrCertTemplateName [in]

The name of the certificate being queried for the S/MIME key usage.

pdwCertTemplateSMIME [out]

A pointer to a DWORD that returns a value of one if bstrCertTemplateName supports S/MIME; otherwise it returns zero.

Return value

C++

If the method succeeds, the method returns S_OK.

If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

VB

Long value of one if bstrCertTemplateName supports S/MIME; otherwise zero.

Remarks

The constant for szOID_PKIX_KP_EMAIL_PROTECTION is defined in Wincrypt.h.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2003 [desktop apps only]
DLL
Scrdenrl.dll
IID
IID_ISCrdEnr is defined as 753988a1-1357-436d-9cf5-f089bdd67d64

See also

ISCrdEnr

ISCrdEnr::enroll