Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |
---|---|
|
Indicates success. |
|
Indicates that the certificate contains no data. |
|
Indicates that pX509Cert or CERT_CONTEXT->pCertInfo is NULL or that dataid is invalid. |
|
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 |
|
IDL |
|
DLL |
|