IMimeSecurity::GetCertData method

Gets the specified certificate.

Syntax

HRESULT GetCertData(
  [in]       const PCX509CERT    pX509Cert,
  [in]       const CERTDATAID    dataid,
  [out, ref]       LPPROPVARIANT &pValue
);

Parameters

pX509Cert [in]

Type: const PCX509CERT

Specifies a pointer to the CERT_CONTEXT structure from which to read data.

dataid [in]

Type: const CERTDATAID

Specifies a CERTDATAID value.

pValue [out, ref]

Type: LPPROPVARIANT

Receives a pointer to a PROPVARIANT structure that contains the certificate data.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
MIME_E_NOT_FOUND
Indicates that the certificate contains no data.
E_INVALIDARG
Indicates that pX509Cert or CERT_CONTEXT->pCertInfo is NULL or that dataid is invalid.
CRYPT_E_NOT_FOUND
Indicates that there are no more certificates.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Product
Outlook Express 6.0
Header
Mimeole.h
IDL
Mimeole.idl
DLL
Inetcomm.dll (version 6.0 or later)