ICertRequest2::GetFullResponseProperty method (certcli.h)
The GetFullResponseProperty method retrieves the cached response data returned by the server.
Syntax
HRESULT GetFullResponseProperty(
[in] LONG PropId,
[in] LONG PropIndex,
[in] LONG PropType,
[in] LONG Flags,
[out] VARIANT *pvarPropertyValue
);
Parameters
[in] PropId
The data to be retrieved. If the property is indexed, use PropIndex to specify the index. This parameter can be one of the following values.
[in] PropIndex
The zero-based index when PropId is an indexed property. If PropId is not an indexed property, then PropIndex must be zero.
[in] PropType
The type of data returned in pvarPropertyValue. The property type here must match the type of data specified by the PropId parameter.
This parameter can be one of the following values.
Value | Meaning |
---|---|
|
Signed long data. |
|
Date data (includes date and time). |
|
Binary data. |
|
String data. |
[in] Flags
The format of the data returned in pvarPropertyValue. The flag set here must match the type of data specified by the PropId parameter.
For more information, see Remarks. This parameter can be one of the following values.
Value | Meaning |
---|---|
|
BASE64 format with begin/end header. |
|
BASE64 format without begin/end header. |
|
Binary format. |
[out] pvarPropertyValue
The data returned.
Return value
C++
If the method succeeds, the method returns S_OK and pvarPropertyValue contains the returned data.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
The return value is a Variant that contains the returned data.Remarks
The following PropId values return binary data, which means that the Flags parameter must set to CR_OUT_BINARY:
- FR_PROP_FULLRESPONSE
- FR_PROP_ISSUEDCERTIFICATEHASH
- FR_PROP_ISSUEDCERTIFICATE
- FR_PROP_ISSUEDCERTIFICATECHAIN
- FR_PROP_ISSUEDCERTIFICATECRLCHAIN
- FR_PROP_ENCRYPTEDKYEHASH
- FR_PROP_FULLRESPONSENOPKCS7
After the ICertRequest3::GetFullResponseProperty method returns its data, the following methods can be called:
- ICEnroll4::AcceptResponse can be called to install the returned certificate.
- ICEnroll4::GetCertFromResponse can be called to parse the certificate from the response.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | certcli.h (include Certsrv.h) |
Library | Certidl.lib |
DLL | Certcli.dll |